Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore!: Normalize repository, dropping node <10.13 support #2758

Merged
merged 8 commits into from
Mar 25, 2024
Prev Previous commit
Next Next commit
fix: Ensure watch allows japanese characters in globs
  • Loading branch information
phated committed Mar 24, 2024
commit 67218ebe22f35c611b25cb628d6cd49dc6904311
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
Loading