Skip to content

Commit

Permalink
test: added
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Mar 7, 2024
1 parent 0334416 commit eb55873
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/CachedInputFileSystem.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,19 @@ describe("CachedInputFileSystem CacheBackend", () => {
fs.purge(["/test/path"]);
fs.readdir("/test/path", (err, r) => {
expect(r[0]).toEqual("2");
done();
fs.purge([url.pathToFileURL("/test/path")]);
fs.readdir("/test/path", (err, r) => {
expect(r[0]).toEqual("2");
fs.purge(Buffer.from("/test/path"));
fs.readdir("/test/path", (err, r) => {
expect(r[0]).toEqual("3");
fs.purge([Buffer.from("/test/path")]);
fs.readdir("/test/path", (err, r) => {
expect(r[0]).toEqual("4");
done();
});
});
});
});
});
});
Expand Down

0 comments on commit eb55873

Please sign in to comment.