summaryrefslogtreecommitdiff
path: root/tests/js/hero.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js/hero.mjs')
-rw-r--r--tests/js/hero.mjs7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/js/hero.mjs b/tests/js/hero.mjs
index 9a5cf25..ee35489 100644
--- a/tests/js/hero.mjs
+++ b/tests/js/hero.mjs
@@ -237,12 +237,15 @@ const test_interceptorsFn = async t => {
{ status },
);
assert.deepEqual(
- contents,
+ contents.map(o => u.dissoc(o, "timings")),
[
{ ...req, type: "in-request" },
{ id: req.id, status, type: "in-response" },
],
);
+ assert.equal(typeof contents[1].timings.ms.before, "number");
+ assert.equal(typeof contents[1].timings.ms.after, "number");
+ assert.equal(typeof contents[1].timings.ms.duration, "number");
});
};
@@ -501,7 +504,7 @@ const test_wrapHandler = async t => {
},
);
assert.deepEqual(
- contents,
+ contents.map(o => u.dissoc(o, "timings")),
[
{
id: "0",