Skip to content

Commit

Permalink
style: sync with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherwin H committed Nov 13, 2019
1 parent 9d7abbf commit 45f0019
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions test/unit/helpers/shallowUntilTarget.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ describe("helpers", () => {
});

it("lets you unwrap a component two levels", () => {
const Example = compose(
wrapper(),
wrapper()
)(ExampleBase);
const Example = compose(wrapper(), wrapper())(ExampleBase);

const root = shallowUntilTarget(<Example />, ExampleBase);
expect(root.text()).toEqual("Example component");
Expand All @@ -84,11 +81,7 @@ describe("helpers", () => {
});

it("gives up trying to unwrap component after maxTries", () => {
const Example = compose(
wrapper(),
wrapper(),
wrapper()
)(ExampleBase);
const Example = compose(wrapper(), wrapper(), wrapper())(ExampleBase);

expect(() => {
shallowUntilTarget(<Example />, ExampleBase, {
Expand Down

0 comments on commit 45f0019

Please sign in to comment.