Skip to content

Commit

Permalink
Merge pull request #27 from oslabs-beta/button-container-tests
Browse files Browse the repository at this point in the history
Update buttonContainer locked setting test
  • Loading branch information
mikebednarz committed Jun 20, 2023
2 parents ce2db4a + 1400ffa commit cfc1098
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/__tests__/ButtonContainer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ describe('Unit testing for ButtonContainer', () => {
mockedUsedStoreContext.mockClear();
currentTab.mode = {
paused: true,
persist: false,
};
});

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

describe('When view is lock', () => {
test('Button should show as locked', () => {
state.tabs['87'].mode.paused = false;
state.tabs['87'].mode.paused = true;
render(<ButtonsContainer />);
expect(screen.getAllByRole('button')[0]).toHaveTextContent('Unlocked');
expect(screen.getAllByRole('button')[0]).toHaveTextContent('Locked');
});
});

Expand Down

0 comments on commit cfc1098

Please sign in to comment.