Skip to content

Commit

Permalink
update:Add->testComponets All
Browse files Browse the repository at this point in the history
  • Loading branch information
dovanminhquan0505 committed May 19, 2024
1 parent 13cfb41 commit b36d0e9
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 5 deletions.
5 changes: 5 additions & 0 deletions __tests__/components/Feed.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ describe("FeedComponent", () => {
render(<Feed />)
expect(screen.getByPlaceholderText("Search for a tag or a username...")).toMatchSnapshot()
})

it("should render the FeedComponent", () => {
expect(Feed).toBeDefined()
expect(Feed).toMatchSnapshot()
})
})
5 changes: 3 additions & 2 deletions __tests__/components/NavBar.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import React from "react";
import { render, screen, waitFor } from "@testing-library/react";

describe("NavbarComponent", () => {
it("Should render title App", () => {

it("Should render NavbarComponents", () => {
expect(Navbar).toBeDefined()
expect(Navbar).toMatchSnapshot()
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ import { Profile } from "@/components";
import { render, screen, waitFor } from "@testing-library/react";

describe("ProfileComponent", () => {

it("should render Profile Component", () => {
expect(Profile).toBeDefined()
expect(Profile).toMatchSnapshot()
})
})
5 changes: 4 additions & 1 deletion __tests__/components/PromptCard.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ import React from "react";
import { render, screen, waitFor } from "@testing-library/react";

describe("PromptCardComponent", () => {

it("should render a PromptCard Component", () => {
expect(PromptCard).toBeDefined()
expect(PromptCard).toMatchSnapshot()
})
})
5 changes: 4 additions & 1 deletion __tests__/components/Provider.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ import React from "react";
import { render, screen, waitFor } from "@testing-library/react";

describe("ProviderComponent", () => {

it("should render Provider Components", () => {
expect(Provider).toBeDefined()
expect(Provider).toMatchSnapshot()
})
})
2 changes: 2 additions & 0 deletions __tests__/components/__snapshots__/Feed.test.jsx.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`FeedComponent should render the FeedComponent 1`] = `[Function]`;

exports[`FeedComponent should render the Search Field Text 1`] = `
<input
class="search_input peer"
Expand Down
3 changes: 3 additions & 0 deletions __tests__/components/__snapshots__/NavBar.test.jsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`NavbarComponent Should render NavbarComponents 1`] = `[Function]`;
3 changes: 3 additions & 0 deletions __tests__/components/__snapshots__/Profile.test.jsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`ProfileComponent should render Profile Component 1`] = `[Function]`;
3 changes: 3 additions & 0 deletions __tests__/components/__snapshots__/PromptCard.test.jsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`PromptCardComponent should render a PromptCard Component 1`] = `[Function]`;
3 changes: 3 additions & 0 deletions __tests__/components/__snapshots__/Provider.test.jsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`ProviderComponent should render Provider Components 1`] = `[Function]`;

0 comments on commit b36d0e9

Please sign in to comment.