We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21c7671 commit 2202703Copy full SHA for 2202703
test/web-platform-tests/run-wpts.js
@@ -94,12 +94,12 @@ describe("web-platform-tests", () => {
94
let failCount = 0;
95
if (data) {
96
failCount = Object.values(data)
97
- .filter(innerReason => resolveReason(innerReason) === "expect-fail").length;
+ .filter(([innerReason]) => resolveReason(innerReason) === "expect-fail").length;
98
}
99
100
let prefix = "";
101
if (failCount > 0) {
102
- prefix = `[expected ${failCount} failures] `;
+ prefix = `[expected ${failCount} failure${failCount > 1 ? "s" : ""}] `;
103
104
105
runSingleWPT(testFilePath, `${prefix}${testFile}`, data || false);
0 commit comments