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:
Nathan Sobo
2015-01-13 10:17:48 -07:00
parent ab4588571d
commit 49cd3eb5da

View File

@@ -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()