Skip to content

Commit

Permalink
[Tests] shallow: fix bug in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 19, 2019
1 parent dfd1289 commit 70069a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/enzyme-test-suite/test/ShallowWrapper-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ describe('shallow', () => {
);
SimpleComponent.contextTypes = { name: PropTypes.string };

const context = { name: 'foo' };
const wrapper = shallow(<SimpleComponent />, { context });

expect(wrapper.context().name).to.equal(context.name);
Expand Down

0 comments on commit 70069a2

Please sign in to comment.