From 67218ebe22f35c611b25cb628d6cd49dc6904311 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Sun, 24 Mar 2024 15:10:18 -0700 Subject: [PATCH] fix: Ensure watch allows japanese characters in globs --- test/watch.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/watch.js b/test/watch.js index 690266eb..45bf195c 100644 --- a/test/watch.js +++ b/test/watch.js @@ -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');