Skip to content

Commit

Permalink
chore: upgrade fetch-mock
Browse files Browse the repository at this point in the history
  • Loading branch information
bhovhannes committed Jun 4, 2018
1 parent 47ac8a8 commit 1f9f800
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions fixtures/batch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"data": [
{
"data": {}
},
{
"data": {}
}
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@
"codecov": "3.0.2",
"dateformat": "3.0.3",
"execa": "0.10.0",
"fetch-mock": "5.13.1",
"fetch-mock": "6.4.3",
"http-server": "0.11.1",
"istanbul-instrumenter-loader": "3.0.1",
"karma": "2.0.2",
4 changes: 2 additions & 2 deletions test/integration/batch.spec.ts
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ describe('Batch', function() {
beforeEach(function() {
fetchMock.mock(
`begin:${API_URL}/attask/api`,
200,
require('../../fixtures/batch.json'),
{
name: 'any'
}
@@ -70,6 +70,6 @@ describe('Batch', function() {
],
false
)
should(fetchMock.calls().matched.length).equal(1)
should(fetchMock.calls().length).equal(1)
})
})

0 comments on commit 1f9f800

Please sign in to comment.