mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
AAE-22947 Dispose toBeTruthy / toBeFalsy
This commit is contained in:
parent
727048a013
commit
d9a4311ddc
@ -77,10 +77,10 @@ describe('FormFieldValidator', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
expect(field.value).toEqual({ id: 'empty', name: 'Choose option...' });
|
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' };
|
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', () => {
|
it('should fail (display error) for multiple type dropdown with zero selection', () => {
|
||||||
@ -114,7 +114,7 @@ describe('FormFieldValidator', () => {
|
|||||||
hasEmptyValue: false
|
hasEmptyValue: false
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(validator.validate(field)).toBeFalsy();
|
expect(validator.validate(field)).toBe(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should fail (display error) for dropdown with empty object', () => {
|
it('should fail (display error) for dropdown with empty object', () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user