Skip to content

Commit 46ded26

Browse files
committed
before pull master
1 parent 0f8d852 commit 46ded26

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/app/__tests__/ButtonsContainer.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ describe('testing the bottom buttons', () => {
6565
});
6666
});
6767

68-
6968
describe('lock button testing', () => {
7069
beforeEach(() => {
7170
wrapper.find('.lock-button').simulate('click');

src/app/__tests__/Diff.test.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ describe('Unit testing for Diff.jsx', () => {
1919
}],
2020

2121
}],
22-
}
22+
};
2323

2424
const state = {
2525
currentTab: 100,
2626
tabs: { 100: { snapshots: [1, 2, 3, 4], viewIndex: 1, sliderIndex: 1 } },
2727
};
2828

29-
3029
useStoreContext.mockImplementation(() => [state]);
3130

3231
const delta = { children: {} }; // expect delta to be an obj
3332
const html = 'html'; // expect html to be a string
3433
const previous = { state: 'string', children: {} }; // expect previous to be an obj
3534

3635
beforeEach(() => {
36+
// eslint-disable-next-line react/jsx-props-no-spreading
3737
wrapper = shallow(<Diff {...props} />);
3838
});
3939

@@ -69,5 +69,4 @@ describe('Unit testing for Diff.jsx', () => {
6969
expect(wrapper.textContent).not.toEqual('No state change detected. Trigger an event to change state');
7070
});
7171
});
72-
7372
});

src/app/__tests__/SwitchApp.test.jsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ configure({ adapter: new Adapter() });
1010

1111
jest.mock('../store');
1212

13-
1413
describe('Unit testing for SwitchApp.jsx', () => {
1514
let wrapper;
1615

1716
const state = {
1817
currentTab: 100,
19-
tabs: { 100: { snapshots: [1, 2, 3, 4], viewIndex: 1, sliderIndex: 1, title: 'component'} },
18+
tabs: {
19+
100: {
20+
snapshots: [1, 2, 3, 4], viewIndex: 1, sliderIndex: 1, title: 'component',
21+
},
22+
},
2023
};
2124
const dropdownCurrTabLabel = {
2225
value: 100,
@@ -45,7 +48,7 @@ describe('Unit testing for SwitchApp.jsx', () => {
4548
});
4649
it('OnChange should run dispatch function', () => {
4750
expect(dispatch.mock.calls.length).toBe(1);
48-
})
51+
});
4952
it('options prop should be an array', () => {
5053
expect(Array.isArray(wrapper.find('.tab-select-container').props().options)).toBeTruthy();
5154
expect(wrapper.find('.tab-select-container').props().options[0]).toHaveProperty('value');

src/app/__tests__/mainReducer.test.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
toggleMode, addNewSnapshots, initialConnect, setPort, emptySnapshots, changeView, changeSlider, moveBackward, moveForward, playForward, pause, startPlaying, importSnapshots, setTab, deleteTab,
55
} from '../actions/actions';
66

7-
87
describe('mainReducer testing', () => {
98
let state;
109
let currentTab;

0 commit comments

Comments
 (0)