From e06c0629a0e8be425e51e09ac55451325633f34a Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Wed, 30 Oct 2024 17:40:15 +0000 Subject: [PATCH] Respond to PR comments. --- .../src/api/routes/tests/viewV2.spec.ts | 45 +++++++++---------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/packages/server/src/api/routes/tests/viewV2.spec.ts b/packages/server/src/api/routes/tests/viewV2.spec.ts index 7358cc1347..1f2470f097 100644 --- a/packages/server/src/api/routes/tests/viewV2.spec.ts +++ b/packages/server/src/api/routes/tests/viewV2.spec.ts @@ -3730,29 +3730,28 @@ describe.each([ name: "Black Mesa", }) - await config.api.row.save(employees._id!, { - name: "Alice", - age: 25, - company: apertureScience._id, - }) - - await config.api.row.save(employees._id!, { - name: "Bob", - age: 30, - company: apertureScience._id, - }) - - await config.api.row.save(employees._id!, { - name: "Charly", - age: 27, - company: blackMesa._id, - }) - - await config.api.row.save(employees._id!, { - name: "Danny", - age: 15, - company: blackMesa._id, - }) + await Promise.all([ + config.api.row.save(employees._id!, { + name: "Alice", + age: 25, + company: apertureScience._id, + }), + config.api.row.save(employees._id!, { + name: "Bob", + age: 30, + company: apertureScience._id, + }), + config.api.row.save(employees._id!, { + name: "Charly", + age: 27, + company: blackMesa._id, + }), + config.api.row.save(employees._id!, { + name: "Danny", + age: 15, + company: blackMesa._id, + }), + ]) const { rows } = await config.api.viewV2.search(view.id, { query: {},