Skip to content

Commit 59e5605

Browse files
refactor: remove testing of the styles on the theme wrapper
1 parent 03af3f5 commit 59e5605

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
import ThemeWrapper from "@/components/wrappers/ThemeWrapper";
22
import "@testing-library/jest-dom";
33
import { render, screen } from "@testing-library/react";
4-
import { colors } from "../../../__mocks__/colors";
54

65
describe("ThemeWrapper", () => {
7-
it("should render the theme", () => {
6+
it("should render the theme wrapper", () => {
87
render(<ThemeWrapper>Theme wrapper</ThemeWrapper>);
98
const themeWrapper = screen.getByTestId("themeWrapper");
109

1110
expect(themeWrapper).toBeInTheDocument();
1211
expect(themeWrapper.textContent).toBe("Theme wrapper");
1312
});
14-
15-
it("should apply extra props", () => {
16-
render(<ThemeWrapper colors={colors}>Theme wrapper</ThemeWrapper>);
17-
const themeWrapper = screen.getByTestId("themeWrapper");
18-
19-
expect(themeWrapper.style.cssText).toContain("--tm-");
20-
});
2113
});

0 commit comments

Comments
 (0)