11import React from 'react' ;
2- import { Provider } from 'react-redux'
2+ import { Provider } from 'react-redux' ;
33import { render , screen } from '@testing-library/react' ;
44import '@testing-library/jest-dom' ;
55import { userEvent } from '@testing-library/user-event' ;
66import { setupStore } from '../../util/setupStore' ;
77import { setConfig } from '../../slices/config' ;
88
9- let mockedGetTagsByType = jest . fn ( ) ;
9+ const mockedGetTagsByType = jest . fn ( ) ;
1010jest . mock ( '../../services/tagmanager' , ( ) => ( {
1111 __esModule : true ,
1212 getTagsByType : mockedGetTagsByType
@@ -23,7 +23,7 @@ const defaultProps = {
2323 hasWarning : ( ) => false ,
2424 hasError : ( ) => false ,
2525 notification : { message : '' } ,
26- inputPlaceholder : 'Search for tags...' ,
26+ inputPlaceholder : 'Search for tags...'
2727} ;
2828
2929const store = setupStore ( ) ;
@@ -38,7 +38,7 @@ describe('TagPicker', () => {
3838 mockedGetTagsByType . mockResolvedValue ( {
3939 data : [
4040 { data : { path : 'keyword/first-tag' , externalName : 'Tag first external' , internalName : 'Tag first (internal)' } } ,
41- { data : { path : 'keyword/second-tag' , externalName : 'Tag second external' , internalName : 'Tag second (internal)' } } ,
41+ { data : { path : 'keyword/second-tag' , externalName : 'Tag second external' , internalName : 'Tag second (internal)' } }
4242 ]
4343 } ) ;
4444
0 commit comments