mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Explicitly request to use mock clock to get Date.now mocking
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user