Explicitly request to use mock clock to get Date.now mocking

This commit is contained in:
Nathan Sobo
2017-07-31 09:50:31 -06:00
parent 4254825f3c
commit 899e9d3f8a

View File

@@ -1350,6 +1350,7 @@ describe('Pane', () => {
let editor1, pane, eventCount
beforeEach(async () => {
jasmine.useMockClock()
editor1 = await atom.workspace.open('sample.txt', {pending: true})
pane = atom.workspace.getActivePane()
eventCount = 0