We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a9d042 commit 37a4eddCopy full SHA for 37a4edd
1 file changed
test/test-test.js
@@ -2,7 +2,8 @@ const sinon = require('sinon')
2
3
describe.only('Travis debug test', () => {
4
beforeEach(() => {
5
- console.log('Stubbing fetch:', fetch)
+ // console.log('Stubbing fetch:', fetch)
6
+ expect(fetch).to.be.a('function')
7
sinon.stub(global, 'fetch').callsFake(() => Promise.resolve())
8
console.log('Stubbed fetch? ', fetch, !!fetch.restore)
9
console.log('Stubbed global.fetch? ', global.fetch, !!global.fetch.restore)
0 commit comments