Skip to content

Commit e666b46

Browse files
committed
Merge branch 'develop' into refactorIDEView
2 parents 1a78ceb + 97c3b35 commit e666b46

32 files changed

+19389
-14470
lines changed

client/components/Nav.jsx

Lines changed: 111 additions & 36 deletions
Large diffs are not rendered by default.

client/components/__test__/FileNode.test.jsx

Lines changed: 0 additions & 183 deletions
This file was deleted.

client/components/__test__/Nav.test.jsx

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
import React from 'react';
3-
import { shallow } from 'enzyme';
4-
import renderer from 'react-test-renderer';
3+
import { render } from '@testing-library/react';
54

6-
import { NavComponent } from './../Nav';
5+
6+
import { NavComponent } from '../Nav';
77

88
describe('Nav', () => {
99
const props = {
@@ -44,19 +44,12 @@ describe('Nav', () => {
4444
setToastText: jest.fn(),
4545
rootFile: {
4646
id: 'root-file'
47-
}
47+
},
48+
t: jest.fn()
4849
};
49-
const getWrapper = () => shallow(<NavComponent {...props} />);
50-
51-
test('it renders main navigation', () => {
52-
const nav = getWrapper();
53-
expect(nav.exists('.nav')).toEqual(true);
54-
});
5550

5651
it('renders correctly', () => {
57-
const tree = renderer
58-
.create(<NavComponent {...props} />)
59-
.toJSON();
60-
expect(tree).toMatchSnapshot();
52+
const { asFragment } = render(<NavComponent {...props} />);
53+
expect(asFragment()).toMatchSnapshot();
6154
});
6255
});

client/components/__test__/Toolbar.test.jsx

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)