Fix test that was failing because SQL Server doesn't allow you to insert values into primary key columns unless you set a setting.

This commit is contained in:
Sam Rose 2024-03-12 10:55:58 +00:00
parent ce209a16b3
commit d1f876d67f
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

View File

@ -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,