1
0
Fork 0
mirror of synced 2024-09-12 23:43:09 +12:00

Shuffle all test createRows

This commit is contained in:
Adria Navarro 2024-05-21 13:31:15 +02:00
parent fc99fad3d2
commit 221c8a3f0a

View file

@ -78,7 +78,7 @@ describe.each([
} }
async function createRows(rows: Record<string, any>[]) { async function createRows(rows: Record<string, any>[]) {
await config.api.row.bulkImport(table._id!, { rows }) await config.api.row.bulkImport(table._id!, { rows: _.shuffle(rows) })
} }
class SearchAssertion { class SearchAssertion {
@ -981,11 +981,13 @@ describe.each([
time: { name: "time", type: FieldType.DATETIME, timeOnly: true }, time: { name: "time", type: FieldType.DATETIME, timeOnly: true },
}) })
await createRows( await createRows([
_.shuffle([T_1000, T_1045, T_1200, T_1530, T_0000]).map(time => ({ { time: T_1000 },
time, { time: T_1045 },
})) { time: T_1200 },
) { time: T_1530 },
{ time: T_0000 },
])
}) })
describe("equal", () => { describe("equal", () => {