1
- import {
2
- FileItem ,
3
- IFileItemProps
4
- } from '../../src/components/FileItem' ;
1
+ import { FileItem , IFileItemProps } from '../../src/components/FileItem' ;
5
2
import * as React from 'react' ;
6
3
import 'jest' ;
7
- import { shallow } from "enzyme" ;
8
-
4
+ import { shallow } from 'enzyme' ;
9
5
10
6
describe ( 'FileItem' , ( ) => {
11
7
const props : IFileItemProps = {
@@ -18,7 +14,7 @@ describe('FileItem', () => {
18
14
refresh : null ,
19
15
moveFile : ( ) => { } ,
20
16
discardFile : ( ) => { } ,
21
- moveFileIconClass : ( ) => { } ,
17
+ moveFileIconClass : 'string' ,
22
18
moveFileIconSelectedClass : 'string' ,
23
19
moveFileTitle : '' ,
24
20
openFile : ( ) => { } ,
@@ -34,16 +30,15 @@ describe('FileItem', () => {
34
30
updateSelectedDiscardFile : ( ) => { } ,
35
31
disableFile : false ,
36
32
toggleDisableFiles : ( ) => { } ,
37
- sideBarExpanded : false ,
38
- currentTheme : ''
33
+ sideBarExpanded : false
39
34
} ;
40
35
41
- describe ( " #render()" , ( ) => {
36
+ describe ( ' #render()' , ( ) => {
42
37
const component = shallow ( < FileItem { ...props } /> ) ;
43
- it ( " should display the full path on hover" , ( ) => {
44
- expect (
45
- component . find ( '[title="some/file/path/file-name"]' )
46
- ) . toHaveLength ( 1 ) ;
38
+ it ( ' should display the full path on hover' , ( ) => {
39
+ expect ( component . find ( '[title="some/file/path/file-name"]' ) ) . toHaveLength (
40
+ 1
41
+ ) ;
47
42
} ) ;
48
43
} ) ;
49
- } ) ;
44
+ } ) ;
0 commit comments