Skip to content

Commit

Permalink
fixin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flacoman91 committed Oct 4, 2024
1 parent cede000 commit b1f66e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/App.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ describe('initial state', () => {

expect(updateLocationHookSpy).toBeCalled();

expect(screen.getByText(/Consumer Complaint Database/)).toBeDefined();
expect(screen.getByText(/Search within/)).toBeDefined();
expect(screen.getByText(/Consumer Complaint Database/)).toBeInTheDocument();
expect(screen.getByText(/Search within/)).toBeInTheDocument();
expect(
screen.getByRole('button', { name: /Show advanced search tips/ }),
).toBeInTheDocument();
Expand All @@ -45,8 +45,8 @@ describe('initial state', () => {

expect(updateLocationHookSpy).toBeCalled();

expect(screen.getByText(/Consumer Complaint Database/)).toBeDefined();
expect(screen.getByText(/Search within/)).toBeDefined();
expect(screen.getByText(/Consumer Complaint Database/)).toBeInTheDocument();
expect(screen.getByText(/Search within/)).toBeInTheDocument();
expect(
screen.getByRole('button', { name: /Show advanced search tips/ }),
).toBeInTheDocument();
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/actionLogger/actionLogger.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { setupStore } from '../../testUtils/setupStore';

describe('redux middleware::actionLogger', () => {
test('it logs actions', () => {
it('logs actions', () => {
const store = setupStore();
const action = {
type: 'fake action',
Expand Down

0 comments on commit b1f66e5

Please sign in to comment.