import { shallow } from "enzyme"; import React from "react"; import { PropTypesOf } from "talk-framework/types"; import App from "./App"; it("renders correctly", () => { const props: PropTypesOf = { asset: {}, }; const wrapper = shallow(); expect(wrapper).toMatchSnapshot(); }); it("renders correctly when asset is null", () => { const props: PropTypesOf = { asset: null, }; const wrapper = shallow(); expect(wrapper).toMatchSnapshot(); });