Skip to content

Commit

Permalink
[react-pacakger] Fix failing test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Amjad Masad committed Aug 31, 2015
1 parent 94ae886 commit d87480e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,6 @@ describe('SocketClient', () => {
data: 'some error'
});

return promise.catch(m => expect(m.message).toBe('some error'));
return promise.catch(m => expect(m.message).toContain('some error'));
});
});

0 comments on commit d87480e

Please sign in to comment.