Skip to content

Commit

Permalink
fix test for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vankop committed Aug 6, 2020
1 parent 65bed95 commit ec0fa51
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/configCases/asset-url/target-node3/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
it("should handle import.meta.url in URL()", () => {
const {href} = new URL("./index.css", import.meta.url);

expect(href).toBe("file:///index.css");
expect(href).toBe(
process.platform === "win32"
? "file:///C:/index.css"
: "file:///index.css"
);
});

0 comments on commit ec0fa51

Please sign in to comment.