1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

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

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,