Skip to content

Commit

Permalink
fix(sui-mockmock): fix restore interceptors and use new nock version
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Moral Pareja committed Mar 13, 2020
1 parent a931439 commit 3b29764
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/sui-mockmock/src/http/serverMocker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import {Mocker, Mock} from './mockerInterface'
import nock from 'nock'

class ServerMocker extends Mocker {
restore() {
nock.cleanAll()
}

httpMock(baseUrl) {
return new ServerMock(nock, baseUrl)
}
Expand Down

0 comments on commit 3b29764

Please sign in to comment.