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 592a90e commit cacb5c4Copy full SHA for cacb5c4
test/node-tests/doc.test.js
@@ -146,12 +146,12 @@ function checkExpectation (want, got) {
146
return approxEqual(got, want, 1e-9)
147
}
148
if (
149
- typeof want === 'string'
150
- && typeof got === 'string'
151
- && want.endsWith('Error')
152
- && got.startsWith(want)
+ typeof want === 'string' &&
+ typeof got === 'string' &&
+ want.endsWith('Error') &&
+ got.startsWith(want)
153
) {
154
- return true // we obtained the expected error type
+ return true // we obtained the expected error type
155
156
if (typeof want !== 'undefined') {
157
return approxDeepEqual(got, want)
0 commit comments