Last active
January 23, 2020 20:59
-
-
Save bpas247/6ac70ab86518ea36739965bd9730f5ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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