diff options
Diffstat (limited to 'test/js/node/path/path.test.js')
-rw-r--r-- | test/js/node/path/path.test.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/js/node/path/path.test.js b/test/js/node/path/path.test.js index 567e837af..030a7443a 100644 --- a/test/js/node/path/path.test.js +++ b/test/js/node/path/path.test.js @@ -692,3 +692,8 @@ it("path.parse", () => { test("path.format works for vite's example", () => { expect(path.format({ root: "", dir: "", name: "index", base: undefined, ext: ".css" })).toBe("index.css"); }); + +it("path.extname", () => { + expect(path.extname("index.js")).toBe(".js"); + expect(path.extname("make_plot.🔥")).toBe(".🔥"); +}); |