We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed40e09 commit d7c76bdCopy full SHA for d7c76bd
1 file changed
test/test-test.js
@@ -12,26 +12,26 @@ const doAssertions = () => {
12
}
13
14
const restore = () => {
15
- global.fetch.restore()
+ if (global.fetch.restore) {
16
+ global.fetch.restore()
17
+ }
18
19
20
describe.only('Travis debug test', () => {
- describe('Working everywhere', () => {
21
+ describe('Failing in Travis', () => {
22
beforeEach(() => {
- expect(fetch).to.be.a('function')
-
23
stubFetch()
24
})
25
26
- afterEach(() => {
27
28
- })
+ afterEach(restore)
29
30
it('should show that fetch is stubbed', doAssertions)
31
32
33
- describe('Failing in Travis', () => {
+ describe('Working everywhere', () => {
34
+ expect(fetch).to.be.a('function')
+
35
36
37
0 commit comments