Skip to content

Commit

Permalink
fix: updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daveskybet committed Dec 20, 2024
1 parent a2b0f46 commit 60666fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
});
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
});
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});

0 comments on commit 60666fa

Please sign in to comment.