File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
packages/module/src/TagCount Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ import React from 'react' ;
23import { render } from '@testing-library/react' ;
34import TagCount from './TagCount' ;
45
@@ -11,13 +12,4 @@ describe('TagCount component', () => {
1112 it ( 'should render a tag count of 11' , ( ) => {
1213 expect ( render ( < TagCount count = { 11 } /> ) ) . toMatchSnapshot ( ) ;
1314 } ) ;
14- } ) ;
15- it ( 'should have the correct class when rendered' , ( ) => {
16- const { container } = render ( < TagCount /> ) ;
17- expect ( container . firstChild ) . toHaveClass ( 'buttonTagCount' ) ;
18- } ) ;
19-
20- it ( 'should have the correct class when count is provided' , ( ) => {
21- const { container } = render ( < TagCount count = { 5 } /> ) ;
22- expect ( container . firstChild ) . toHaveClass ( 'buttonTagCount' ) ;
23- } ) ;
15+ } ) ;
You can’t perform that action at this time.
0 commit comments