Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 28 additions & 19 deletions lib/test/testing_util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

133 changes: 73 additions & 60 deletions lib/watchers/stat.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "watch-tree",
"version": "0.1.1",
"version": "0.1.2",

"description": "Yet another library for watching FS trees. Includes a JSON-on-stdout command-line tool and {filePreexisted,allPreexistingFilesReported} events.",
"url": "https://github.com/tafa/node-watch-tree",
Expand All @@ -19,7 +19,12 @@
},

"author": "Andrew Schaaf <andrew@andrewschaaf.com>",


"maintainers": [{
"name": "Matjaž Lipuš",
"web": "https://github.com/matjaz"
}],

"repository": {
"type": "git",
"url": "git://github.com/tafa/node-watch-tree.git"
Expand Down
5 changes: 2 additions & 3 deletions src/test/testing_util.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

{exec} = require 'child_process'
sys = require 'sys'

util = try require 'util' catch e then require 'sys'

exports.check_exec_options = check_exec_options = (cmd, options, callback) ->
exec cmd, options, (e, stdout, stderr) ->
Expand Down Expand Up @@ -41,7 +40,7 @@ exports.EventBuffer = class EventBuffer
@callback = callback

expect: (t, args...) ->
sys.debug "Expecting #{args[0]}..."
util.debug "Expecting #{args[0]}..."
@wait (event) ->
for x, i in args[...-1]
t.equal event[i], x
Expand Down
Loading