From 2641cdeed2897ba603083b3444474660c23e5cbb Mon Sep 17 00:00:00 2001 From: Eoghan Murray Date: Fri, 25 Oct 2024 18:24:17 +0100 Subject: [PATCH] Fixup test, there's no significance in asset ordering --- packages/rrweb/test/record/asset.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/rrweb/test/record/asset.test.ts b/packages/rrweb/test/record/asset.test.ts index 5b6d9c37bd..9440b83773 100644 --- a/packages/rrweb/test/record/asset.test.ts +++ b/packages/rrweb/test/record/asset.test.ts @@ -811,7 +811,9 @@ describe('asset capturing', function (this: ISuite) { }, }, ]; - expect(assetEvents).toMatchObject(expected); + // assets can be emitted in either order + expect(assetEvents).toMatchObject(expect.arrayContaining(expected[0])); + expect(assetEvents).toMatchObject(expect.arrayContaining(expected[1])); }); });