Add test to DomainEntityV1alpha1.test.ts

Signed-off-by: Joe Van Alstyne <jvanalstyne@mdsol.com>
This commit is contained in:
Joe Van Alstyne
2024-08-09 18:17:19 +09:00
parent ef71b00bbe
commit 1a0d955bb5
@@ -95,4 +95,9 @@ describe('DomainV1alpha1Validator', () => {
(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/);
});
});