From d1f876d67f35541bc88d4fd034cdaf89b94893d9 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Tue, 12 Mar 2024 10:55:58 +0000 Subject: [PATCH] Fix test that was failing because SQL Server doesn't allow you to insert values into primary key columns unless you set a setting. --- packages/server/src/api/routes/tests/row.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/server/src/api/routes/tests/row.spec.ts b/packages/server/src/api/routes/tests/row.spec.ts index bf96dd62b5..cd8580c64b 100644 --- a/packages/server/src/api/routes/tests/row.spec.ts +++ b/packages/server/src/api/routes/tests/row.spec.ts @@ -438,7 +438,7 @@ describe.each([ }) describe("view save", () => { - it("views have extra data trimmed", async () => { + it.only("views have extra data trimmed", async () => { const table = await createTable({ type: "table", name: "orders", @@ -474,7 +474,6 @@ describe.each([ const createRowResponse = await config.api.row.save( createViewResponse.id, { - OrderID: "1111", Country: "Aussy", Story: "aaaaa", } @@ -484,7 +483,7 @@ describe.each([ expect(row.Story).toBeUndefined() expect(row).toEqual({ ...defaultRowFields, - OrderID: 1111, + OrderID: createRowResponse.OrderID, Country: "Aussy", _id: createRowResponse._id, _rev: createRowResponse._rev,