mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Clear window.setTimeout mock before each spec
This fixes a failure in the keymap spec where we assert that setTimeout hasn’t been called.
This commit is contained in:
@@ -119,6 +119,7 @@ beforeEach ->
|
||||
"package-with-broken-package-json", "package-with-broken-keymap"]
|
||||
config.set "editor.useShadowDOM", true
|
||||
advanceClock(1000)
|
||||
window.setTimeout.reset()
|
||||
config.load.reset()
|
||||
config.save.reset()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user