From c980942899b7a24db012b61e1d94b791ecab7b71 Mon Sep 17 00:00:00 2001 From: Amjad Masad Date: Mon, 31 Aug 2015 13:19:05 -0700 Subject: [PATCH] [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. --- .../src/SocketInterface/__tests__/SocketClient-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-packager/src/SocketInterface/__tests__/SocketClient-test.js b/react-packager/src/SocketInterface/__tests__/SocketClient-test.js index c898e927..59477fcf 100644 --- a/react-packager/src/SocketInterface/__tests__/SocketClient-test.js +++ b/react-packager/src/SocketInterface/__tests__/SocketClient-test.js @@ -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')); }); });