Skip to content

Instantly share code, notes, and snippets.

@bpas247
Last active January 23, 2020 20:59
Show Gist options
  • Save bpas247/6ac70ab86518ea36739965bd9730f5ce to your computer and use it in GitHub Desktop.
Save bpas247/6ac70ab86518ea36739965bd9730f5ce to your computer and use it in GitHub Desktop.
import { runSpecs } from "spec_helper";
import chai from "chai";
import { user, image_paths } from "fake_data";
import { mount } from "enzyme";
import Component from "components/Exercises/List";
const list = [];
const settings = {
suggestions: []
};
const content = {
body: "lorem"
};
runSpecs("List", ({ expect }) => {
it("renders without content", () => {
const comp = mount(<Component settings user image_paths list />);
expect(comp).to.exist;
});
it("renders with content", () => {
const comp = mount(<Component settings content user image_paths list />);
expect(comp).to.exist;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment