Skip to content

Commit

Permalink
Fix lint-check
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Oct 12, 2020
1 parent 5ea3be4 commit 76cfcaf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/e2e/ExpectModelUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ function toBeEdge(this: MatcherContext, received: string, expected: ExpectedEdge
message: () =>
this.utils.matcherHint(matcherName, undefined, undefined, options) +
'\n\n' +
this.utils.printDiffOrStringify(expectedCell, undefined, `${EXPECTED_LABEL}: Edge with id '${expectedCell.id}'`, `${RECEIVED_LABEL}`, isExpand(this.expand)),
this.utils.printDiffOrStringify(expectedCell, undefined, `${EXPECTED_LABEL}: Edge with id '${expectedCell.id}'`, `${RECEIVED_LABEL}`, this.expand),
pass: false,
};
}
Expand All @@ -362,16 +362,14 @@ function toBeEdge(this: MatcherContext, received: string, expected: ExpectedEdge
receivedCell,
`${EXPECTED_LABEL}: Edge with id '${expectedCell.id}'`,
`${RECEIVED_LABEL}: Edge with id '${received}'`,
isExpand(this.expand),
this.expand,
);
return {
message,
pass,
};
}

const isExpand = (expand: any) => expand !== false;

expect.extend({
toBeCell,
withGeometry,
Expand Down

0 comments on commit 76cfcaf

Please sign in to comment.