From d9a4311ddcaca6ec2bc843f93544a8d9dc5683bb Mon Sep 17 00:00:00 2001 From: wiktord2000 Date: Tue, 11 Jun 2024 14:15:27 +0200 Subject: [PATCH] AAE-22947 Dispose toBeTruthy / toBeFalsy --- .../components/widgets/core/form-field-validator.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/src/lib/form/components/widgets/core/form-field-validator.spec.ts b/lib/core/src/lib/form/components/widgets/core/form-field-validator.spec.ts index 82ce0e60e6..234fb0cc64 100644 --- a/lib/core/src/lib/form/components/widgets/core/form-field-validator.spec.ts +++ b/lib/core/src/lib/form/components/widgets/core/form-field-validator.spec.ts @@ -77,10 +77,10 @@ describe('FormFieldValidator', () => { }); expect(field.value).toEqual({ id: 'empty', name: 'Choose option...' }); - expect(validator.validate(field)).toBeFalsy(); + expect(validator.validate(field)).toBe(false); field.value = { id: 'noneEmpty', name: 'None empty' }; - expect(validator.validate(field)).toBeTruthy(); + expect(validator.validate(field)).toBe(true); }); it('should fail (display error) for multiple type dropdown with zero selection', () => { @@ -114,7 +114,7 @@ describe('FormFieldValidator', () => { hasEmptyValue: false }); - expect(validator.validate(field)).toBeFalsy(); + expect(validator.validate(field)).toBe(false); }); it('should fail (display error) for dropdown with empty object', () => {