Skip to content

Commit eb55873

Browse files
test: added
1 parent 0334416 commit eb55873

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

test/CachedInputFileSystem.test.js

+13-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,19 @@ describe("CachedInputFileSystem CacheBackend", () => {
434434
fs.purge(["/test/path"]);
435435
fs.readdir("/test/path", (err, r) => {
436436
expect(r[0]).toEqual("2");
437-
done();
437+
fs.purge([url.pathToFileURL("/test/path")]);
438+
fs.readdir("/test/path", (err, r) => {
439+
expect(r[0]).toEqual("2");
440+
fs.purge(Buffer.from("/test/path"));
441+
fs.readdir("/test/path", (err, r) => {
442+
expect(r[0]).toEqual("3");
443+
fs.purge([Buffer.from("/test/path")]);
444+
fs.readdir("/test/path", (err, r) => {
445+
expect(r[0]).toEqual("4");
446+
done();
447+
});
448+
});
449+
});
438450
});
439451
});
440452
});

0 commit comments

Comments
 (0)