From 82171fe1c744c3c367f4fc80528d2859da03acd9 Mon Sep 17 00:00:00 2001 From: David Hales Date: Fri, 20 Dec 2024 09:27:00 +0000 Subject: [PATCH] fix: updated tests --- .../tests/configCases/css/rspack-issue-6435-xxhash64/index.js | 2 +- .../tests/configCases/css/rspack-issue-6435/index.js | 2 +- .../mangle-exports/skipping-mangle-css-modules/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/rspack-test-tools/tests/configCases/css/rspack-issue-6435-xxhash64/index.js b/packages/rspack-test-tools/tests/configCases/css/rspack-issue-6435-xxhash64/index.js index 914be999c0a..fac028ae7c5 100644 --- a/packages/rspack-test-tools/tests/configCases/css/rspack-issue-6435-xxhash64/index.js +++ b/packages/rspack-test-tools/tests/configCases/css/rspack-issue-6435-xxhash64/index.js @@ -3,5 +3,5 @@ import legacyClasses from "./legacy/index.css"; it("should have consistent hash", () => { expect(classes["container-main"]).toBe(`${/* md4("./style.module.css") */ "d8ad836b5119c8e8"}-container-main`) - expect(legacyClasses["legacy-main"]).toBe(`${/* md4("./legacy/index.css") */ "e623bccf86c6"}-legacy-main`) + expect(legacyClasses["legacy-main"]).toBe(`${/* md4("./legacy/index.css") */ "_9721e623bccf86c6"}-legacy-main`) }); diff --git a/packages/rspack-test-tools/tests/configCases/css/rspack-issue-6435/index.js b/packages/rspack-test-tools/tests/configCases/css/rspack-issue-6435/index.js index de15f3b57c5..316ccbc562f 100644 --- a/packages/rspack-test-tools/tests/configCases/css/rspack-issue-6435/index.js +++ b/packages/rspack-test-tools/tests/configCases/css/rspack-issue-6435/index.js @@ -2,6 +2,6 @@ import * as classes from "./style.module.css"; import legacyClasses from "./legacy/index.css"; it("should have consistent hash", () => { - expect(classes["container-main"]).toBe(`${/* md4("./style.module.css") */ "ea850e6088d2566f677"}-container-main`) + expect(classes["container-main"]).toBe(`${/* md4("./style.module.css") */ "_7ea850e6088d2566f677"}-container-main`) expect(legacyClasses["legacy-main"]).toBe(`${/* md4("./legacy/index.css") */ "c15d43fe622e87bbf5d"}-legacy-main`) }); diff --git a/packages/rspack-test-tools/tests/configCases/mangle-exports/skipping-mangle-css-modules/index.js b/packages/rspack-test-tools/tests/configCases/mangle-exports/skipping-mangle-css-modules/index.js index 3ba16e11637..114229f7e17 100644 --- a/packages/rspack-test-tools/tests/configCases/mangle-exports/skipping-mangle-css-modules/index.js +++ b/packages/rspack-test-tools/tests/configCases/mangle-exports/skipping-mangle-css-modules/index.js @@ -6,5 +6,5 @@ it("should not mangle css module", () => { // Using this to trigger a none provided export test.res; - expect(test.test).toBe("-ec1c834ac8cc99e-test"); + expect(test.test).toBe("-_6ec1c834ac8cc99e-test"); });