Skip to content

Commit 1f9f800

Browse files
committed
chore: upgrade fetch-mock
1 parent 47ac8a8 commit 1f9f800

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

fixtures/batch.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"data": [
3+
{
4+
"data": {}
5+
},
6+
{
7+
"data": {}
8+
}
9+
]
10+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"codecov": "3.0.2",
2828
"dateformat": "3.0.3",
2929
"execa": "0.10.0",
30-
"fetch-mock": "5.13.1",
30+
"fetch-mock": "6.4.3",
3131
"http-server": "0.11.1",
3232
"istanbul-instrumenter-loader": "3.0.1",
3333
"karma": "2.0.2",

test/integration/batch.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('Batch', function() {
3838
beforeEach(function() {
3939
fetchMock.mock(
4040
`begin:${API_URL}/attask/api`,
41-
200,
41+
require('../../fixtures/batch.json'),
4242
{
4343
name: 'any'
4444
}
@@ -70,6 +70,6 @@ describe('Batch', function() {
7070
],
7171
false
7272
)
73-
should(fetchMock.calls().matched.length).equal(1)
73+
should(fetchMock.calls().length).equal(1)
7474
})
7575
})

0 commit comments

Comments
 (0)