Add test to SystemEntityV1alpha1.test.ts

Signed-off-by: Joe Van Alstyne <jvanalstyne@mdsol.com>
This commit is contained in:
Joe Van Alstyne
2024-08-09 18:17:33 +09:00
parent 1a0d955bb5
commit 33489f73ab
@@ -95,4 +95,9 @@ describe('SystemV1alpha1Validator', () => {
(entity as any).spec.type = '';
await expect(validator.check(entity)).rejects.toThrow(/type/);
});
it('rejects wrong type', async () => {
(entity as any).spec.type = 7;
await expect(validator.check(entity)).rejects.toThrow(/type/);
});
});