Skip to content

Commit

Permalink
fix: Ensure watch allows japanese characters in globs
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Mar 24, 2024
1 parent 1b5c9fd commit 67218eb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,24 @@ describe('gulp.watch()', function() {
updateTempFile(tempFile);
});

it('should call the function when file changes at a path with japanese characters', function(done) {
var japaneseDir = path.join(outpath, 'フォルダ');

fs.mkdirSync(japaneseDir);

var tempFile = path.join(japaneseDir, 'foobar.txt');

createTempFile(tempFile);

var watcher = gulp.watch('フォルダ/*', { cwd: outpath }, function(cb) {
watcher.close();
cb();
done();
});

updateTempFile(tempFile);
});

it('should not call the function when ignored file changes', function(done) {
var tempFile = path.join(outpath, 'ignored.txt');

Expand Down

0 comments on commit 67218eb

Please sign in to comment.