Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Commit 4bba7a3

Browse files
committed
chore: fix sinon spys in browser tests
1 parent cd570b7 commit 4bba7a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/importer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const extend = require('deep-extend')
77
const chai = require('chai')
88
chai.use(require('dirty-chai'))
99
const expect = chai.expect
10-
const sinon = require('sinon')
10+
const spy = require('sinon/lib/sinon/spy')
1111
const BlockService = require('ipfs-block-service')
1212
const pull = require('pull-stream')
1313
const mh = require('multihashes')
@@ -456,7 +456,7 @@ module.exports = (repo) => {
456456
})
457457

458458
it('will call an optional progress function', (done) => {
459-
options.progress = sinon.spy()
459+
options.progress = spy()
460460

461461
pull(
462462
pull.values([{

0 commit comments

Comments
 (0)