Fix flakiness

This commit is contained in:
Adria Navarro 2024-10-28 10:54:00 +01:00
parent f28746089d
commit 8aeb19aabe
1 changed files with 6 additions and 6 deletions

View File

@ -1199,16 +1199,16 @@ describe.each([
expect(row).toEqual( expect(row).toEqual(
expect.objectContaining({ expect.objectContaining({
name: "test", name: "test",
related1: [ related1: expect.arrayContaining([
{
_id: relatedRows[1]._id,
primaryDisplay: relatedRows[1].name,
},
{ {
_id: relatedRows[0]._id, _id: relatedRows[0]._id,
primaryDisplay: relatedRows[0].name, primaryDisplay: relatedRows[0].name,
}, },
], {
_id: relatedRows[1]._id,
primaryDisplay: relatedRows[1].name,
},
]),
related2: [ related2: [
{ {
_id: relatedRows[2]._id, _id: relatedRows[2]._id,