Skip to content

Commit

Permalink
Update feature-steps.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ryn5 committed Jan 5, 2024
1 parent 5b566d0 commit b637ea8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ Then(/^the result should be (\w+)$/, function assertResult(characterizedAs, resu
const expectedResult = resultTable.rows().map(row => parseRow.call(this, row));
switch (characterizedAs) {
case 'ordered':
expect(expectedResult).to.have.deep.ordered.members(toCompare(this.result));
expect(toCompare(this.result)).to.have.deep.ordered.members(expectedResult);
break;
case 'unordered':
expect(expectedResult).to.have.deep.members(toCompare(this.result));
expect(toCompare(this.result)).to.have.deep.members(toCompare(expectedResult));
break;
case 'of':
// result is a subset of the expected
Expand Down

0 comments on commit b637ea8

Please sign in to comment.