diff --git a/moonscript/cmd/watchers.moon b/moonscript/cmd/watchers.moon index 6b91aa9..b9146bc 100644 --- a/moonscript/cmd/watchers.moon +++ b/moonscript/cmd/watchers.moon @@ -54,7 +54,7 @@ class InotifyWacher extends Watcher fname = dir .. fname if dir != "./" -- TODO: check to make sure the file was in the original set - coroutine.yield(fname) + coroutine.yield fname class SleepWatcher extends Watcher diff --git a/spec/cmd_spec.moon b/spec/cmd_spec.moon index 2ab5199..63e88e3 100644 --- a/spec/cmd_spec.moon +++ b/spec/cmd_spec.moon @@ -65,7 +65,7 @@ describe "moonc", -> describe "watcher", -> describe "inotify watcher", -> it "gets dirs", -> - import InotifyWacher from require "moonscript.cmd.watcher" + import InotifyWacher from require "moonscript.cmd.watchers" watcher = InotifyWacher { {"hello.moon", "hello.lua"} {"cool/no.moon", "cool/no.lua"}