Skip to content

Instantly share code, notes, and snippets.

@mkhl
Created March 31, 2016 18:10
Show Gist options
  • Save mkhl/51c379e8abc4485189a4237526a2c507 to your computer and use it in GitHub Desktop.
Save mkhl/51c379e8abc4485189a4237526a2c507 to your computer and use it in GitHub Desktop.
diff --git i/spec/filewatcher-spec.coffee w/spec/filewatcher-spec.coffee
index 572cf8c..ae9354e 100644
--- i/spec/filewatcher-spec.coffee
+++ w/spec/filewatcher-spec.coffee
@@ -16,6 +16,7 @@ log = loglevel.getLogger('filewatcher-spec')
testWatcher = (watcherFunc) -> (expectedFile) ->
spy = jasmine.createSpy('callback')
+ fs.writeFileSync(expectedFile, '')
watcherFunc(spy, expectedFile)
fs.writeFile(expectedFile, 'Hello Gaze, see me!',
(err) -> throw err if (err))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment