From a7a13aa5fe659670a70fff42a0fcc95e268b0b2e Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Fri, 6 Dec 2024 14:31:40 -0600 Subject: [PATCH] More Windows fixes --- test/AutoCopyPluginTest.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/AutoCopyPluginTest.js b/test/AutoCopyPluginTest.js index 0bdd32345..08339ba4e 100644 --- a/test/AutoCopyPluginTest.js +++ b/test/AutoCopyPluginTest.js @@ -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"), } }); @@ -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"), } }); @@ -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"), } }); @@ -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"), } }); @@ -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"), } });