We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b49f50 commit 4573f9aCopy full SHA for 4573f9a
1 file changed
tests/other_protocolerror.js
@@ -28,7 +28,7 @@ tape.test("a protocol error", function(test) {
28
} catch (e) {
29
test.ok(e instanceof ProtocolError, "should be thrown if a message is missing required fields");
30
test.ok(e.message, "should have an error message");
31
- test.ok(e.stack, "should have a stack trace");
+ test.ok(typeof e.stack === "string", "should have a stack trace (empty string if not supported)");
32
test.equal(e.name, "ProtocolError", "should have the correct name");
33
test.same(e.instance, {
34
foo: 2
0 commit comments