VideoPlayer.test.js 489 B

1234567891011121314151617
  1. import React from "react"
  2. import { mount } from "enzyme"
  3. import VideoPlayer from "./../src/components/VideoPlayer"
  4. describe("VideoPlayer component", () => {
  5. const component = mount(
  6. <VideoPlayer
  7. src={"https://www.computt.com/asset/v0/5EjgEKNpyDbNdjcJoZ8izWuzeDUtAcaUvwG8vUWZQZ256NLb"}
  8. poster={"https://ssl-static.libsyn.com/p/assets/a/4/8/f/a48f1a0697e958ce/Cover_2.png"}
  9. />)
  10. it("Should render correctly", () => {
  11. expect(component).toMatchSnapshot()
  12. })
  13. })