We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cacc173 commit bc352ddCopy full SHA for bc352dd
test/watch.js
@@ -61,6 +61,21 @@ describe('gulp', function() {
61
});
62
63
64
+ it('should not call the function when no file changes: no options', function(done) {
65
+ var tempFile = path.join(outpath, 'watch-func.txt');
66
+
67
+ createTempFile(tempFile);
68
69
+ var watcher = gulp.watch(tempFile, function() {
70
+ should.fail('Watcher erroneously called');
71
+ });
72
73
+ setTimeout(function() {
74
+ watcher.close();
75
+ done();
76
+ }, 10);
77
78
79
it('should call the function when file changes: w/ options', function(done) {
80
var tempFile = path.join(outpath, 'watch-func-options.txt');
81
0 commit comments