Skip to content

Commit

Permalink
Add failing test case for unlink and re-add
Browse files Browse the repository at this point in the history
  • Loading branch information
caseywebdev committed Feb 15, 2018
1 parent 4813aec commit c821fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ function runTests(baseopts) {
var unlinkSpy = sinon.spy(function unlinkSpy(){});
var addSpy = sinon.spy(function addSpy(){});
var testPath = getFixturePath('unlink.txt');
watcher = chokidar.watch(testPath, options)
watcher = chokidar.watch([testPath, testPath + '.does-not-exist'], options)
.on('unlink', unlinkSpy)
.on('add', addSpy)
.on('ready', function() {
Expand Down

0 comments on commit c821fab

Please sign in to comment.