Skip to content

Commit

Permalink
Fixup test, there's no significance in asset ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
eoghanmurray committed Oct 25, 2024
1 parent a79f253 commit 2641cde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/rrweb/test/record/asset.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
});
});

Expand Down

0 comments on commit 2641cde

Please sign in to comment.