Skip to content

Commit b405fc7

Browse files
authored
Merge pull request webpack#4654 from timse/fix-test-for-identifier-utils
move and fix tests
2 parents 4269c00 + 34a279e commit b405fc7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
const should = require("should");
55
const path = require("path");
66

7-
const identifierUtil = require("../../lib/util/identifier");
7+
const identifierUtil = require("../lib/util/identifier");
88

9-
describe("pathUtil", () => {
10-
describe("makeRelative", () => {
9+
describe("util/identifier", () => {
10+
describe("makePathsRelative", () => {
1111
describe("given a context and a pathConstruct", () => {
1212
let context, pathConstruct, expected;
1313
beforeEach(() => {
1414
context = "/some/dir/";
1515
pathConstruct = "/some/dir/to/somwhere|some/other/dir!../more/dir";
16-
expected = `${path.relative(context, "/some/dir/to/somwhere")}|${path.relative(context, "some/other/dir")}!${path.relative(context, "../more/dir")}`;
16+
expected = `${path.relative("/some/dir/", "/some/dir/to/somwhere")}|some/other/dir!../more/dir`;
1717
});
1818

1919
it("computes the correct relative results for the path construct", () => {

0 commit comments

Comments
 (0)