Skip to content

Commit

Permalink
Build fix: ensure test wrapper is the component instance, rather than…
Browse files Browse the repository at this point in the history
… the rendered output, so that the lifecycle methods are properly invoked in the test

  - see enzymejs/enzyme#1939 for discussion
  • Loading branch information
vanderhoop committed Feb 5, 2020
1 parent c213a9a commit 5ecceef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/components/group_label_input_test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import { shallow } from "enzyme"
import { mount, shallow } from "enzyme"
import sinon from "sinon"

import GroupLabelInput from "../../web/static/js/components/group_label_input"
Expand Down Expand Up @@ -46,7 +46,7 @@ describe("GroupLabelInput component", () => {
ideas: [],
votes: [],
}
wrapper = shallow(
wrapper = mount(
<GroupLabelInput
groupWithAssociatedIdeasAndVotes={groupWithAssociatedIdeasAndVotes}
actions={{}}
Expand Down

0 comments on commit 5ecceef

Please sign in to comment.