20 lines
552 B
Diff
20 lines
552 B
Diff
commit 6ecc08caebe4cbcc282fbe8143c3d3288f99c539
|
|
Author: Tom Hughes <tom@compton.nu>
|
|
Date: Thu Aug 1 20:27:56 2019 +0100
|
|
|
|
Patch test to ignore extra information in Node.js 12.x errors
|
|
|
|
diff --git a/test.js b/test.js
|
|
index fb3b65f..19f6957 100644
|
|
--- a/test.js
|
|
+++ b/test.js
|
|
@@ -9,7 +9,7 @@ test(function (t) {
|
|
require('foo')
|
|
} catch (realErr) {
|
|
var fakeErr = notFound('foo')
|
|
- t.equal(fakeErr.message, realErr.message)
|
|
+ t.equal(fakeErr.message, realErr.message.split("\n")[0])
|
|
t.equal(fakeErr.code, realErr.code)
|
|
}
|
|
})
|