Remove nock#restore call from actions.spec.js

This call was unmocking all of our HTTP requests, allowing further test cases
to hit the network. Calling nock#restore should not be required.
feature/default_network_editable
Whymarrh Whitby 6 years ago
parent d730da8caa
commit 1de7dc9b41
  1. 5
      test/unit/ui/app/actions.spec.js

@ -1196,7 +1196,6 @@ describe('Actions', () => {
describe('#pairUpdate', () => { describe('#pairUpdate', () => {
beforeEach(() => { beforeEach(() => {
nock('https://shapeshift.io') nock('https://shapeshift.io')
.defaultReplyHeaders({ 'access-control-allow-origin': '*' }) .defaultReplyHeaders({ 'access-control-allow-origin': '*' })
.get('/marketinfo/btc_eth') .get('/marketinfo/btc_eth')
@ -1208,10 +1207,6 @@ describe('Actions', () => {
.reply(200) .reply(200)
}) })
afterEach(() => {
nock.restore()
})
it('', () => { it('', () => {
const store = mockStore() const store = mockStore()
// issue with dispatch action in callback not showing // issue with dispatch action in callback not showing

Loading…
Cancel
Save