UNPKG

421 Btext/coffeescriptView Raw
1hound = require 'hound'
2should = require 'should'
3{watcher} = require '../lib/watcher'
4
5describe 'watch', ->
6
7 it 'watches specified paths', (done) ->
8
9 hound.watch = (path) ->
10 path.should.match /\/PATH/
11 on: (event, handlr) ->
12 handlr.should.equal listen
13 done()
14
15 watcher
16 path: '/PATH'
17 handler: change: listen = ->
18
19