@@ -67,7 +67,7 @@ describe('Text', () => {
6767 } ) ;
6868
6969 it ( 'should render the Text with proper variant class name' , ( ) => {
70- const { getByText, container } = render (
70+ const { getByText } = render (
7171 < >
7272 < Text variant = { TextVariant . displayMd } > display-md</ Text >
7373 < Text variant = { TextVariant . headingLg } > heading-lg</ Text >
@@ -98,88 +98,6 @@ describe('Text', () => {
9898 expect ( getByText ( 'body-sm-bold' ) ) . toHaveClass ( 'mm-text--body-sm-bold' ) ;
9999 expect ( getByText ( 'body-xs' ) ) . toHaveClass ( 'mm-text--body-xs' ) ;
100100 expect ( getByText ( 'body-xs-medium' ) ) . toHaveClass ( 'mm-text--body-xs-medium' ) ;
101- expect ( container ) . toMatchSnapshot ( ) ;
102- } ) ;
103-
104- // Brand Evolution Typography
105- it ( 'should render the Text with proper brand evolution class name' , ( ) => {
106- const { getByText } = render (
107- < >
108- < Text variant = { TextVariant . displayMd } isBrandEvolution >
109- display-md
110- </ Text >
111- < Text variant = { TextVariant . headingLg } isBrandEvolution >
112- heading-lg
113- </ Text >
114- < Text variant = { TextVariant . headingMd } isBrandEvolution >
115- heading-md
116- </ Text >
117- < Text variant = { TextVariant . headingSm } isBrandEvolution >
118- heading-sm
119- </ Text >
120- < Text variant = { TextVariant . bodyLgMedium } isBrandEvolution >
121- body-lg-medium
122- </ Text >
123- < Text variant = { TextVariant . bodyMd } isBrandEvolution >
124- body-md
125- </ Text >
126- < Text variant = { TextVariant . bodyMdMedium } isBrandEvolution >
127- body-md-medium
128- </ Text >
129- < Text variant = { TextVariant . bodyMdBold } isBrandEvolution >
130- body-md-bold
131- </ Text >
132- < Text variant = { TextVariant . bodySm } isBrandEvolution >
133- body-sm
134- </ Text >
135- < Text variant = { TextVariant . bodySmMedium } isBrandEvolution >
136- body-sm-medium
137- </ Text >
138- < Text variant = { TextVariant . bodySmBold } isBrandEvolution >
139- body-sm-bold
140- </ Text >
141- < Text variant = { TextVariant . bodyXs } isBrandEvolution >
142- body-xs
143- </ Text >
144- < Text variant = { TextVariant . bodyXsMedium } isBrandEvolution >
145- body-xs-medium
146- </ Text >
147- </ > ,
148- ) ;
149-
150- expect ( getByText ( 'display-md' ) ) . toHaveClass (
151- 'mm-text--display-md-brand-evo' ,
152- ) ;
153- expect ( getByText ( 'heading-lg' ) ) . toHaveClass (
154- 'mm-text--heading-lg-brand-evo' ,
155- ) ;
156- expect ( getByText ( 'heading-md' ) ) . toHaveClass (
157- 'mm-text--heading-md-brand-evo' ,
158- ) ;
159- expect ( getByText ( 'heading-sm' ) ) . toHaveClass (
160- 'mm-text--heading-sm-brand-evo' ,
161- ) ;
162- expect ( getByText ( 'body-lg-medium' ) ) . toHaveClass (
163- 'mm-text--body-lg-medium-brand-evo' ,
164- ) ;
165- expect ( getByText ( 'body-md' ) ) . toHaveClass ( 'mm-text--body-md-brand-evo' ) ;
166- expect ( getByText ( 'body-md-medium' ) ) . toHaveClass (
167- 'mm-text--body-md-medium-brand-evo' ,
168- ) ;
169- expect ( getByText ( 'body-md-bold' ) ) . toHaveClass (
170- 'mm-text--body-md-bold-brand-evo' ,
171- ) ;
172- expect ( getByText ( 'body-sm' ) ) . toHaveClass ( 'mm-text--body-sm-brand-evo' ) ;
173- expect ( getByText ( 'body-sm-medium' ) ) . toHaveClass (
174- 'mm-text--body-sm-medium-brand-evo' ,
175- ) ;
176- expect ( getByText ( 'body-sm-bold' ) ) . toHaveClass (
177- 'mm-text--body-sm-bold-brand-evo' ,
178- ) ;
179- expect ( getByText ( 'body-xs' ) ) . toHaveClass ( 'mm-text--body-xs-brand-evo' ) ;
180- expect ( getByText ( 'body-xs-medium' ) ) . toHaveClass (
181- 'mm-text--body-xs-medium-brand-evo' ,
182- ) ;
183101 } ) ;
184102
185103 it ( 'should render the Text with proper font weight class name' , ( ) => {
0 commit comments