From fa30d29449b70548286fbc591f47d045983fec40 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Wed, 12 Oct 2016 18:02:12 -0400 Subject: [PATCH] Removed isomorphic-fetch from non-test code (#8) --- src/client/client.js | 2 -- test/mocha.opts | 1 + test/sanity.test.js | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client/client.js b/src/client/client.js index e3fd1047a..f89de7466 100644 --- a/src/client/client.js +++ b/src/client/client.js @@ -1,8 +1,6 @@ // Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. -import 'isomorphic-fetch'; - const HEADER_AUTH = 'Authorization'; const HEADER_BEARER = 'BEARER'; const HEADER_REQUESTED_WITH = 'X-Requested-With'; diff --git a/test/mocha.opts b/test/mocha.opts index e83a5ae95..b79453007 100644 --- a/test/mocha.opts +++ b/test/mocha.opts @@ -1,2 +1,3 @@ --require react-native-mock/mock.js +--require isomorphic-fetch --recursive \ No newline at end of file diff --git a/test/sanity.test.js b/test/sanity.test.js index 35e547319..4e1d5fb4c 100644 --- a/test/sanity.test.js +++ b/test/sanity.test.js @@ -1,7 +1,6 @@ // Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. -import 'isomorphic-fetch'; import 'react-native'; // Ensure that everything is imported correctly for testing