diff options
author | Thomas <thomas.b.huang@gmail.com> | 2018-07-30 21:27:25 +0800 |
---|---|---|
committer | Thomas <thomas.b.huang@gmail.com> | 2018-07-30 21:27:25 +0800 |
commit | 3d9f283f8720d5a2d1fb0cdd13ec4c95706866e5 (patch) | |
tree | 050bae55a2db6edfcb7a3785d84693a8d584f703 /test/helper.js | |
parent | fb5e357998ea2bd976176a58f5db4578b0e15694 (diff) | |
download | tangerine-wallet-browser-3d9f283f8720d5a2d1fb0cdd13ec4c95706866e5.tar tangerine-wallet-browser-3d9f283f8720d5a2d1fb0cdd13ec4c95706866e5.tar.gz tangerine-wallet-browser-3d9f283f8720d5a2d1fb0cdd13ec4c95706866e5.tar.bz2 tangerine-wallet-browser-3d9f283f8720d5a2d1fb0cdd13ec4c95706866e5.tar.lz tangerine-wallet-browser-3d9f283f8720d5a2d1fb0cdd13ec4c95706866e5.tar.xz tangerine-wallet-browser-3d9f283f8720d5a2d1fb0cdd13ec4c95706866e5.tar.zst tangerine-wallet-browser-3d9f283f8720d5a2d1fb0cdd13ec4c95706866e5.zip |
Disallow netConnections other than localhosts
Diffstat (limited to 'test/helper.js')
-rw-r--r-- | test/helper.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/helper.js b/test/helper.js index 2225be37a..51f28de17 100644 --- a/test/helper.js +++ b/test/helper.js @@ -1,7 +1,11 @@ const Ganache = require('ganache-core') +const nock = require('nock') import Enzyme from 'enzyme' import Adapter from 'enzyme-adapter-react-15' +nock.disableNetConnect() +nock.enableNetConnect('localhost') + Enzyme.configure({ adapter: new Adapter() }) // disallow promises from swallowing errors enableFailureOnUnhandledPromiseRejection() |