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