Skip to content

Commit f3d0f0d

Browse files
authored
Merge pull request #338 from jaipreet-s/testfailure
Fix build failure: syntax issues in FileItem spec
2 parents 98e5ef2 + 15414cd commit f3d0f0d

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed
Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
import {
2-
FileItem,
3-
IFileItemProps
4-
} from '../../src/components/FileItem';
1+
import { FileItem, IFileItemProps } from '../../src/components/FileItem';
52
import * as React from 'react';
63
import 'jest';
7-
import { shallow } from "enzyme";
8-
4+
import { shallow } from 'enzyme';
95

106
describe('FileItem', () => {
117
const props: IFileItemProps = {
@@ -18,7 +14,7 @@ describe('FileItem', () => {
1814
refresh: null,
1915
moveFile: () => {},
2016
discardFile: () => {},
21-
moveFileIconClass: () => {},
17+
moveFileIconClass: 'string',
2218
moveFileIconSelectedClass: 'string',
2319
moveFileTitle: '',
2420
openFile: () => {},
@@ -34,16 +30,15 @@ describe('FileItem', () => {
3430
updateSelectedDiscardFile: () => {},
3531
disableFile: false,
3632
toggleDisableFiles: () => {},
37-
sideBarExpanded: false,
38-
currentTheme: ''
33+
sideBarExpanded: false
3934
};
4035

41-
describe("#render()", () => {
36+
describe('#render()', () => {
4237
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+
);
4742
});
4843
});
49-
});
44+
});

0 commit comments

Comments
 (0)