From: Jérôme Benoit Date: Wed, 18 Oct 2023 17:01:20 +0000 (+0200) Subject: test: fix data cloning error matching X-Git-Tag: v3.0.3~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=cfe1b03e205549416ea6abfe386e17da5fbed631;p=poolifier.git test: fix data cloning error matching Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/thread/fixed.test.mjs b/tests/pools/thread/fixed.test.mjs index 214913d4..a5960946 100644 --- a/tests/pools/thread/fixed.test.mjs +++ b/tests/pools/thread/fixed.test.mjs @@ -202,8 +202,8 @@ describe('Fixed thread pool test suite', () => { error = e } expect(result).toStrictEqual({ ok: 1 }) - expect(error).toStrictEqual( - new TypeError('Found invalid object in transferList') + expect(error).toMatchObject( + new Error('Found invalid object in transferList') ) })