Skip to content

Commit

Permalink
Test case
Browse files Browse the repository at this point in the history
  • Loading branch information
YashNathani0708 committed Nov 11, 2024
1 parent fbe8686 commit eaf4228
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// test('adds 1 + 2 to equal 3', () => {
// expect(1 + 2).toBe(3);
// });
test('adds 1 + 2 to equal 3', () => {
expect(1 + 2).toBe(3);
});

import { render, screen } from '@testing-library/react';
import { Header } from './Header';

test('Header renders correctly', () => {
render(<Header />);
const textElement = screen.getByText('Hello');
expect(textElement).toBeInTheDocument();
});
test1('adds 2 + 2 to equal 4', () => {
expect(1 + 2).toBe(4);
});

0 comments on commit eaf4228

Please sign in to comment.