Skip to content

Commit

Permalink
update:Add->SnapShotFeed
Browse files Browse the repository at this point in the history
  • Loading branch information
DevAnonitos committed May 18, 2024
1 parent c1470c5 commit 5349da4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/components/Feed.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ describe("FeedComponent", () => {
// Finding placeholder for the search input
it("should render the Search Field Text", () => {
render(<Feed />)
expect(screen.getByPlaceholderText("Search for a tag or a username..."))
expect(screen.getByPlaceholderText("Search for a tag or a username...")).toMatchSnapshot()
})
})
11 changes: 11 additions & 0 deletions __tests__/components/__snapshots__/Feed.test.jsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`FeedComponent should render the Search Field Text 1`] = `
<input
class="search_input peer"
placeholder="Search for a tag or a username..."
required=""
type="text"
value=""
/>
`;

0 comments on commit 5349da4

Please sign in to comment.