Skip to content

Commit

Permalink
use pathUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblum committed Jan 18, 2024
1 parent 3dc8676 commit f211f50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/realpath.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as fse from "fs-extra";
import * as chai from "chai";
import * as pathUtil from "path";

import helper from "./helper";
import * as jetpack from "..";
Expand Down Expand Up @@ -81,7 +82,7 @@ describe("realpath", () => {

describe("respects internal CWD of jetpack instance", () => {
const name = helper.getRandomName("text.txt");
const path = "a/" + name;
const path = pathUtil.join("a", name)
const preparations = () => {
fse.outputFileSync(path, "abc");
};
Expand Down

0 comments on commit f211f50

Please sign in to comment.