Skip to content

Commit

Permalink
fix breaking test
Browse files Browse the repository at this point in the history
  • Loading branch information
avidrucker committed Jan 8, 2024
1 parent a81a958 commit addbfc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import App from './App';

describe('App', () => {

test('renders add task button', () => {
test('renders add item button', () => {
// Mock console.info method
console.info = jest.fn();

render(<App />);
const addButton = screen.getByText(/Add Task/i);
const addButton = screen.getByText(/Add Item/i);
expect(addButton).toBeInTheDocument();

// Verify that console.info was called
Expand Down

0 comments on commit addbfc0

Please sign in to comment.