File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,30 @@ import Divider from "./";
44
55describe ( "Divider component" , ( ) => {
66 test ( "renders correctly - snapshot test" , ( ) => {
7- const { asFragment } = render ( < Divider /> ) ;
7+ const { asFragment } = render (
8+ < Divider
9+ classes = { [
10+ "yl-bg-primary-text-color" ,
11+ "yl-bg-primary-text-color" ,
12+ "yl-bg-primary-text-color"
13+ ] }
14+ />
15+ ) ;
816 expect ( asFragment ( ) ) . toMatchSnapshot ( ) ;
917 } ) ;
1018
1119 test ( "applies custom class name" , ( ) => {
1220 const customClass = "custom-class" ;
13- render ( < Divider className = { customClass } /> ) ;
21+ render (
22+ < Divider
23+ className = { customClass }
24+ classes = { [
25+ "yl-bg-primary-text-color" ,
26+ "yl-bg-primary-text-color" ,
27+ "yl-bg-primary-text-color"
28+ ] }
29+ />
30+ ) ;
1431 const divider = screen . getByTestId ( "divider" ) ;
1532 expect ( divider ) . toHaveClass ( customClass ) ;
1633 } ) ;
You can’t perform that action at this time.
0 commit comments