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 5f86dae commit c478fe3Copy full SHA for c478fe3
test/test-watcher.browser.js
@@ -366,6 +366,16 @@ function _setupTests(testType) {
366
expect(watcher2PathChangeArray).to.deep.include({ path: watchPath, watchEvent: CHANGE});
367
});
368
369
+ it(`Should phoenix ${testType} watch throw error if trying to watch root dir`, async function () {
370
+ let err;
371
+ try{
372
+ await fs.watchAsync("/tauri/");
373
+ } catch (e) {
374
+ err = e;
375
+ }
376
+ expect(err.code).to.eql(fs.ERR_CODES.EPERM);
377
+ });
378
+
379
it(`Should phoenix ${testType} watch for folder rename with nested contents`, async function () {
380
const watchPath = `${testPath}/watch`;
381
await _creatDirAndValidate(watchPath);
0 commit comments