test: replace string concatenation with template
PR-URL: https://github.com/nodejs/node/pull/16914 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
This commit is contained in:
parent
0e003a3508
commit
2f82334076
@ -690,7 +690,7 @@ try {
|
|||||||
code: 'ERR_INVALID_ARG_TYPE',
|
code: 'ERR_INVALID_ARG_TYPE',
|
||||||
type: TypeError,
|
type: TypeError,
|
||||||
message: 'The "block" argument must be of type function. Received ' +
|
message: 'The "block" argument must be of type function. Received ' +
|
||||||
'type ' + typeName(block)
|
`type ${typeName(block)}`
|
||||||
})(e);
|
})(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user