Skip to content

Commit cfc1098

Browse files
authored
Merge pull request #27 from oslabs-beta/button-container-tests
Update buttonContainer locked setting test
2 parents ce2db4a + 1400ffa commit cfc1098

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/app/__tests__/ButtonContainer.test.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ describe('Unit testing for ButtonContainer', () => {
4848
mockedUsedStoreContext.mockClear();
4949
currentTab.mode = {
5050
paused: true,
51-
persist: false,
5251
};
5352
});
5453

@@ -73,9 +72,9 @@ describe('Unit testing for ButtonContainer', () => {
7372

7473
describe('When view is lock', () => {
7574
test('Button should show as locked', () => {
76-
state.tabs['87'].mode.paused = false;
75+
state.tabs['87'].mode.paused = true;
7776
render(<ButtonsContainer />);
78-
expect(screen.getAllByRole('button')[0]).toHaveTextContent('Unlocked');
77+
expect(screen.getAllByRole('button')[0]).toHaveTextContent('Locked');
7978
});
8079
});
8180

0 commit comments

Comments
 (0)