Skip to content

Commit

Permalink
chore: test name changed
Browse files Browse the repository at this point in the history
  • Loading branch information
bajajcodes committed Jan 13, 2024
1 parent 375963f commit b14ed49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/src/__tests__/integration/home-page.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jest.mock('react-router-dom', () => ({
afterEach(() => mockedUseNavigate.mockRestore());

describe('Integration Test: Home Route', () => {
test('Integration Test: renders home page', async () => {
test('Home Route: renders home page', async () => {
//ARRANGE
render(
<BrowserRouter>
Expand All @@ -36,7 +36,7 @@ describe('Integration Test: Home Route', () => {
expect(screen.getByText(/All Posts/)).toBeInTheDocument();
expect(screen.getAllByTestId('postcardskeleton')).toHaveLength(8);
});
test('Integration Test: calls the mockedUseNavigate function', async () => {
test('Home Route: calls the mockedUseNavigate function', async () => {
//ARRANGE
render(
<BrowserRouter>
Expand All @@ -56,7 +56,7 @@ describe('Integration Test: Home Route', () => {
//ASSERT
expect(mockedUseNavigate).toHaveBeenCalledTimes(1);
});
test('Integration Test: renders home page with BlogFeed', async () => {
test('Home Route: renders home page with BlogFeed', async () => {
//ARRANGE
render(
<BrowserRouter>
Expand All @@ -79,7 +79,7 @@ describe('Integration Test: Home Route', () => {
// Strange test got passed api response is 3 over local backend
expect(await screen.findAllByTestId('featuredPostCard')).toHaveLength(5);
});
test('Integration Test: on featured post click navigates to /details-page/:title/:id page', async () => {
test('Home Route: on featured post click navigates to /details-page/:title/:id page', async () => {
//ARRANGE
render(
<BrowserRouter>
Expand All @@ -104,7 +104,7 @@ describe('Integration Test: Home Route', () => {
//ASSERT
expect(await screen.findAllByTestId('postcard')).toHaveLength(10);
});
test('Integration Test: on all-post post click navigates to /details-page/:title/:id page', async () => {
test('Home Route: on all-post post click navigates to /details-page/:title/:id page', async () => {
//ARRANGE
render(
<BrowserRouter>
Expand Down

0 comments on commit b14ed49

Please sign in to comment.