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:
parent
ce209a16b3
commit
d1f876d67f
|
@ -438,7 +438,7 @@ describe.each([
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("view save", () => {
|
describe("view save", () => {
|
||||||
it("views have extra data trimmed", async () => {
|
it.only("views have extra data trimmed", async () => {
|
||||||
const table = await createTable({
|
const table = await createTable({
|
||||||
type: "table",
|
type: "table",
|
||||||
name: "orders",
|
name: "orders",
|
||||||
|
@ -474,7 +474,6 @@ describe.each([
|
||||||
const createRowResponse = await config.api.row.save(
|
const createRowResponse = await config.api.row.save(
|
||||||
createViewResponse.id,
|
createViewResponse.id,
|
||||||
{
|
{
|
||||||
OrderID: "1111",
|
|
||||||
Country: "Aussy",
|
Country: "Aussy",
|
||||||
Story: "aaaaa",
|
Story: "aaaaa",
|
||||||
}
|
}
|
||||||
|
@ -484,7 +483,7 @@ describe.each([
|
||||||
expect(row.Story).toBeUndefined()
|
expect(row.Story).toBeUndefined()
|
||||||
expect(row).toEqual({
|
expect(row).toEqual({
|
||||||
...defaultRowFields,
|
...defaultRowFields,
|
||||||
OrderID: 1111,
|
OrderID: createRowResponse.OrderID,
|
||||||
Country: "Aussy",
|
Country: "Aussy",
|
||||||
_id: createRowResponse._id,
|
_id: createRowResponse._id,
|
||||||
_rev: createRowResponse._rev,
|
_rev: createRowResponse._rev,
|
||||||
|
|
Loading…
Reference in New Issue