summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/js/hero.mjs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/js/hero.mjs b/tests/js/hero.mjs
index 0c04db8..1c34738 100644
--- a/tests/js/hero.mjs
+++ b/tests/js/hero.mjs
@@ -368,11 +368,12 @@ const test_interceptorsFn = async t => {
},
);
assert.deepEqual(
- contents,
+ contents.map(o => ({ ...o, stacktrace: typeof o.stacktrace })),
[{
id: 123,
type: "server-error-interceptor",
message: `Missing "status"`,
+ stacktrace: "string",
}],
);
});
@@ -391,11 +392,12 @@ const test_interceptorsFn = async t => {
},
);
assert.deepEqual(
- contents,
+ contents.map(o => ({ ...o, stacktrace: typeof o.stacktrace })),
[{
id: "some ID",
type: "server-error-interceptor",
message: "My test error message",
+ stacktrace: "string",
}],
);
});