Skip to content

Instantly share code, notes, and snippets.

@RichardBray
Last active April 3, 2020 17:10
Show Gist options
  • Save RichardBray/cf9081824ba42c4aecf11ebd17b9413e to your computer and use it in GitHub Desktop.
Save RichardBray/cf9081824ba42c4aecf11ebd17b9413e to your computer and use it in GitHub Desktop.
// ...
describe("App", () => {
const wrapper = mount(<App />);
// ...
test("Contains a Start and a Finish page", () => {
// - when
const startComp = wrapper.find("Start");
const finishComp = wrapper.find("Finish");
// - then
expect(startComp.exists()).toBeTruthy();
expect(finishComp.exists()).toBeTruthy();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment