镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lib/internal/test_runner/reporter/junit.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ function treeToXML(tree) {
if (comment) {
return `${indent}<!-- ${escapeComment(comment)} -->\n`;
}
const attrsString = ArrayPrototypeJoin(ArrayPrototypeMap(ObjectEntries(attrs)
, ({ 0: key, 1: value }) => `${key}="${escapeAttribute(String(value))}"`)
, ' ');
const attrsString = ArrayPrototypeJoin(
ArrayPrototypeMap(
ObjectEntries(attrs),
({ 0: key, 1: value }) => `${key}="${escapeAttribute(String(value))}"`),
' ');
if (!children?.length) {
return `${indent}<${tag} ${attrsString}/>\n`;
}
Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-stream-reduce.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ function sum(p, c) {
throw new Error('boom');
}
return c;
}, 0)
, /boom/).then(common.mustCall());
}, 0),
/boom/).then(common.mustCall());
}

{
Expand Down
Loading