Skip to content

Commit

Permalink
hacks for tests failing. comments
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Feb 11, 2020
1 parent e162199 commit 0bc442d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions packages/__tests__/src/legacy/events-function.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('events as a function', function() {
expect(arg.end).toEqualLocalDate('2014-06-08T00:00:00')
expect(arg.endStr).toMatch(/^2014-06-08T00:00:00[-+]/)
callback([])
done()
setTimeout(done) // :(
}
})
})
Expand All @@ -38,7 +38,7 @@ describe('events as a function', function() {
expect(arg.end).toEqualDate('2014-06-08T00:00:00Z')
expect(arg.endStr).toEqual('2014-06-08T00:00:00Z')
callback([])
done()
setTimeout(done) // :(
}
})
})
Expand All @@ -54,7 +54,7 @@ describe('events as a function', function() {
expect(arg.end).toEqualDate('2014-06-08T00:00:00Z')
expect(arg.endStr).toEqual('2014-06-08T00:00:00') // no Z
callback([])
done()
setTimeout(done) // :(
}
})
})
Expand All @@ -77,7 +77,7 @@ describe('events as a function', function() {
expect(arg.timeZone).toEqual('UTC')
expect(arg.start).toEqualDate('2014-04-27')
expect(arg.end).toEqualDate('2014-06-08')
done()
setTimeout(done) // :(
}
}
}
Expand Down Expand Up @@ -109,7 +109,7 @@ describe('events as a function', function() {
eventRender: function(arg) {
expect(eventSource.events.calls.count()).toEqual(1)
expect(arg.el).toHaveClass('customeventclass')
done()
setTimeout(done) // :(
}
})
})
Expand All @@ -127,7 +127,7 @@ describe('events as a function', function() {
},
_eventsPositioned() {
expect(currentCalendar.getEvents().length).toBe(1)
done()
setTimeout(done) // :(
}
})
})
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/reducers/eventSources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function receiveResponse(sourceHash: EventSourceHash, sourceId: string, fetchId:
[sourceId]: {
...eventSource,
isFetching: false,
fetchRange
fetchRange // also serves as a marker that at least one fetch has completed
}
}
}
Expand Down

0 comments on commit 0bc442d

Please sign in to comment.