Example #1
0
 it('works with invalid error', () => {
   expect(bridge.getError('a', {})).toBe(null);
   expect(bridge.getError('a', {invalid: true})).toBe(null);
 });
Example #2
0
 it('works with correct error', () => {
   expect(bridge.getError('a', {details: [{name: 'a'}]})).toEqual({name: 'a'});
   expect(bridge.getError('a', {details: [{name: 'b'}]})).toBe(null);
 });
Example #3
0
 it('works without error', () => {
   expect(bridge.getError('a')).toBe(null);
 });