Skip to content

Commit 4573f9a

Browse files
committed
Other: Attempted to fix broken custom error test
1 parent 4b49f50 commit 4573f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/other_protocolerror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tape.test("a protocol error", function(test) {
2828
} catch (e) {
2929
test.ok(e instanceof ProtocolError, "should be thrown if a message is missing required fields");
3030
test.ok(e.message, "should have an error message");
31-
test.ok(e.stack, "should have a stack trace");
31+
test.ok(typeof e.stack === "string", "should have a stack trace (empty string if not supported)");
3232
test.equal(e.name, "ProtocolError", "should have the correct name");
3333
test.same(e.instance, {
3434
foo: 2

0 commit comments

Comments
 (0)