Skip to content

Commit

Permalink
Fix failing WPTs calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ExE-Boss committed Mar 28, 2021
1 parent 21c7671 commit 2202703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/web-platform-tests/run-wpts.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ describe("web-platform-tests", () => {
let failCount = 0;
if (data) {
failCount = Object.values(data)
.filter(innerReason => resolveReason(innerReason) === "expect-fail").length;
.filter(([innerReason]) => resolveReason(innerReason) === "expect-fail").length;
}

let prefix = "";
if (failCount > 0) {
prefix = `[expected ${failCount} failures] `;
prefix = `[expected ${failCount} failure${failCount > 1 ? "s" : ""}] `;
}

runSingleWPT(testFilePath, `${prefix}${testFile}`, data || false);
Expand Down

0 comments on commit 2202703

Please sign in to comment.