Skip to content

Commit

Permalink
Fix relative paths test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
es128 committed Jan 22, 2015
1 parent 972e7b7 commit ecace6c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,9 @@ function runTests (options) {
var spy = sinon.spy();
var readySpy = sinon.spy();
var testPath = 'test-*/*a*.txt';
var addPath = 'test-fixtures/add.txt';
var changePath = 'test-fixtures/change.txt';
var addPath = sysPath.join('test-fixtures', 'add.txt');
var changePath = sysPath.join('test-fixtures', 'change.txt');
var unlinkPath = sysPath.join('test-fixtures', 'unlink.txt');
var watcher = chokidar.watch(testPath, options)
.on('all', spy)
.on('ready', readySpy);
Expand All @@ -438,7 +439,7 @@ function runTests (options) {
watcher.close();
spy.should.have.been.calledWith('add', addPath);
spy.should.have.been.calledWith('change', changePath);
spy.should.not.have.been.calledWith('add', 'test-fixtures/unlink.txt');
spy.should.not.have.been.calledWith('add', unlinkPath);
spy.should.not.have.been.calledWith('addDir');
readySpy.should.have.been.calledOnce;
done();
Expand Down

0 comments on commit ecace6c

Please sign in to comment.