Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d87480e

Browse files
author
Amjad Masad
committed
[react-pacakger] Fix failing test
Summary: Fix failing test that matches the exact error string to match using `contains`. I was under the impression that jest tests were running in CI -- turns out not yet.
1 parent 94ae886 commit d87480e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packager/react-packager/src/SocketInterface/__tests__/SocketClient-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@ describe('SocketClient', () => {
107107
data: 'some error'
108108
});
109109

110-
return promise.catch(m => expect(m.message).toBe('some error'));
110+
return promise.catch(m => expect(m.message).toContain('some error'));
111111
});
112112
});

0 commit comments

Comments
 (0)