We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a165c5f commit 17d2b0cCopy full SHA for 17d2b0c
spec/cmd_spec.moon
@@ -259,8 +259,15 @@ describe "watcher", ->
259
260
describe "polling watcher", ->
261
before_each ->
262
+ -- Stub sleep(); it's not actually called during the testing but needs to
263
+ -- be there for the import in SleepWatcher.new()
264
+ package.loaded.socket =
265
+ sleep: () -> nil
266
test_watcher = watchers.SleepWatcher output_to, input_paths, prefix_map
267
268
+ after_each ->
269
+ package.loaded.socket = nil
270
+
271
describe "process_file_time", ->
272
local test_process
273
0 commit comments