File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
__tests__/components/wrappers Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 1
1
import ThemeWrapper from "@/components/wrappers/ThemeWrapper" ;
2
2
import "@testing-library/jest-dom" ;
3
3
import { render , screen } from "@testing-library/react" ;
4
- import { colors } from "../../../__mocks__/colors" ;
5
4
6
5
describe ( "ThemeWrapper" , ( ) => {
7
- it ( "should render the theme" , ( ) => {
6
+ it ( "should render the theme wrapper " , ( ) => {
8
7
render ( < ThemeWrapper > Theme wrapper</ ThemeWrapper > ) ;
9
8
const themeWrapper = screen . getByTestId ( "themeWrapper" ) ;
10
9
11
10
expect ( themeWrapper ) . toBeInTheDocument ( ) ;
12
11
expect ( themeWrapper . textContent ) . toBe ( "Theme wrapper" ) ;
13
12
} ) ;
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
- } ) ;
21
13
} ) ;
You can’t perform that action at this time.
0 commit comments