Banner.test.js 354 B

12345678910111213
  1. import React from "react"
  2. import { mount } from "enzyme"
  3. import Banner from "./../src/components/Banner"
  4. describe("Banner component", () => {
  5. const component = mount(<Banner src="http://static.libsyn.com/p/assets/2/c/2/5/2c25acab892a768e/Twitter_Cover.png" />)
  6. it("Should render correctly", () => {
  7. expect(component).toMatchSnapshot()
  8. })
  9. })