Skip to content

Commit 2641cde

Browse files
committed
Fixup test, there's no significance in asset ordering
1 parent a79f253 commit 2641cde

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/rrweb/test/record/asset.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,9 @@ describe('asset capturing', function (this: ISuite) {
811811
},
812812
},
813813
];
814-
expect(assetEvents).toMatchObject(expected);
814+
// assets can be emitted in either order
815+
expect(assetEvents).toMatchObject(expect.arrayContaining(expected[0]));
816+
expect(assetEvents).toMatchObject(expect.arrayContaining(expected[1]));
815817
});
816818
});
817819

0 commit comments

Comments
 (0)