Skip to content

Commit 3244b62

Browse files
committed
Remove persist from ButtonsContainer tests
1 parent 05069b0 commit 3244b62

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/app/__tests__enzyme/ignore/ButtonsContainer.test.tsx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const state = {
1818
mode: {
1919
paused: false,
2020
locked: false,
21-
persist: false,
2221
},
2322
},
2423
},
@@ -42,7 +41,6 @@ describe('testing the bottom buttons', () => {
4241
useStoreContext.mockClear();
4342
currentTab.mode = {
4443
paused: false,
45-
persist: false,
4644
};
4745
});
4846

@@ -66,24 +64,4 @@ describe('testing the bottom buttons', () => {
6664
});
6765
});
6866

69-
describe.skip('persist button testing', () => {
70-
beforeEach(() => {
71-
wrapper.find('.persist-button').simulate('click');
72-
});
73-
74-
test('persist button dispatches upon click', () => {
75-
expect(dispatch.mock.calls.length).toBe(1);
76-
});
77-
78-
test('persist button dispatches toggleMode action', () => {
79-
expect(dispatch.mock.calls[0][0]).toEqual(toggleMode('persist'));
80-
});
81-
82-
test('persist button displays state', () => {
83-
expect(wrapper.find('.persist-button').text()).toBe('<FontAwesomeIcon />Persist');
84-
state.tabs[state.currentTab].mode.persist = true;
85-
wrapper = shallow(<ButtonsContainer />);
86-
expect(wrapper.find('.persist-button').text()).toBe('<FontAwesomeIcon />Unpersist');
87-
});
88-
});
8967
});

0 commit comments

Comments
 (0)