Skip to content

Commit

Permalink
More Windows fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Dec 6, 2024
1 parent 8cc9e60 commit a7a13aa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/AutoCopyPluginTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test("Basic usage", async (t) => {
t.deepEqual(copy[0], {
count: 1,
map: {
"test/stubs-autocopy/possum.png": TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/_site-basica/test/possum.png"),
[TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/possum.png")]: TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/_site-basica/test/possum.png"),
}
});

Expand Down Expand Up @@ -97,7 +97,7 @@ test("More complex image path (parent dir)", async (t) => {
count: 1,
map: {
// test/stubs-autocopy/test.njk => "../stubs-img-transform/possum.png"
"test/stubs-img-transform/possum.png": TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/_site-basicb/stubs-img-transform/possum.png"),
[TemplatePath.normalizeOperatingSystemFilePath("test/stubs-img-transform/possum.png")]: TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/_site-basicb/stubs-img-transform/possum.png"),
}
});

Expand Down Expand Up @@ -350,7 +350,7 @@ test("Use with HtmlBasePlugin usage", async (t) => {
t.deepEqual(copy[0], {
count: 1,
map: {
"test/stubs-autocopy/possum.png": TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/_site8a/test/possum.png"),
[TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/possum.png")]: TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/_site8a/test/possum.png"),
}
});

Expand Down Expand Up @@ -443,13 +443,13 @@ test("Multiple addPlugin calls (use both globs)", async (t) => {
t.deepEqual(copy[0], {
count: 1,
map: {
"test/stubs-autocopy/possum.png": TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/_site9/test/possum.png"),
[TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/possum.png")]: TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/_site9/test/possum.png"),
}
});
t.deepEqual(copy[1], {
count: 1,
map: {
"test/stubs-autocopy/possum.jpg": TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/_site9/test/possum.jpg"),
[TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/possum.jpg")]: TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/_site9/test/possum.jpg"),
}
});

Expand Down Expand Up @@ -501,13 +501,13 @@ test("Array of globs", async (t) => {
t.deepEqual(copy[0], {
count: 1,
map: {
"test/stubs-autocopy/possum.png": TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/_site10/test/possum.png"),
[TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/possum.png")]: TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/_site10/test/possum.png"),
}
});
t.deepEqual(copy[1], {
count: 1,
map: {
"test/stubs-autocopy/possum.jpg": TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/_site10/test/possum.jpg"),
[TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/possum.jpg")]: TemplatePath.normalizeOperatingSystemFilePath("test/stubs-autocopy/_site10/test/possum.jpg"),
}
});

Expand Down

0 comments on commit a7a13aa

Please sign in to comment.