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