diff options
author | 2023-07-22 16:45:45 -0700 | |
---|---|---|
committer | 2023-07-22 16:45:45 -0700 | |
commit | b17b61b8c6854657177dbdc23fad8ea98f4e779f (patch) | |
tree | 2d131ec9446bb7b02c9c97e7766c8d652c2e0c2e /test/js/node/path/path.test.js | |
parent | 27c88c8046ca9f815b9f211c29002e47123b4544 (diff) | |
download | bun-b17b61b8c6854657177dbdc23fad8ea98f4e779f.tar.gz bun-b17b61b8c6854657177dbdc23fad8ea98f4e779f.tar.zst bun-b17b61b8c6854657177dbdc23fad8ea98f4e779f.zip |
fix path.format for `vite build` (#3734)
* fix path.format for vite
* Update path.test.js
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'test/js/node/path/path.test.js')
-rw-r--r-- | test/js/node/path/path.test.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/js/node/path/path.test.js b/test/js/node/path/path.test.js index 8f5a76da7..03037c2e9 100644 --- a/test/js/node/path/path.test.js +++ b/test/js/node/path/path.test.js @@ -1,6 +1,6 @@ const { file } = import.meta; -import { describe, it, expect } from "bun:test"; +import { describe, it, expect, test } from "bun:test"; import path from "node:path"; import assert from "assert"; import { hideFromStackTrace } from "harness"; @@ -586,3 +586,7 @@ it("path.parse", () => { name: "another_dir", }); }); + +test("path.format works for vite's example", () => { + expect(path.format({ root: "", dir: "", name: "index", base: undefined, ext: ".css" })).toBe("index.css"); +}); |