Skip to content

Commit

Permalink
fix(discoverability): move variable out of .each
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenCodes committed Sep 25, 2020
1 parent f39b0d1 commit aee9f88
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/region/__tests__/RegionAnnotations-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ describe('RegionAnnotations', () => {
x: 20,
y: 20,
};
const stagedShape = { location: defaults.location, shape: definedShape };

test.each`
shape | expectedStagedParam | expectedStatusParam
${definedShape} | ${{ location: defaults.location, shape: definedShape }} | ${CreatorStatus.staged}
${null} | ${null} | ${CreatorStatus.init}
shape | expectedStagedParam | expectedStatusParam
${definedShape} | ${stagedShape} | ${CreatorStatus.staged}
${null} | ${null} | ${CreatorStatus.init}
`(
'should update the staged status if the shape is $shape',
({ expectedStagedParam, expectedStatusParam, shape }) => {
Expand Down

0 comments on commit aee9f88

Please sign in to comment.