SearchBar.test.js 323 B

12345678910111213
  1. import React from "react"
  2. import { mount } from "enzyme"
  3. import SearchBar from "./../src/components/SearchBar"
  4. describe("SearchBar component", () => {
  5. const component = mount(<SearchBar placeholder="Type here..." value="test" />)
  6. it("Should render correctly", () => {
  7. expect(component).toMatchSnapshot()
  8. })
  9. })