This commit is contained in:
Adria Navarro 2023-09-12 09:57:47 +02:00
parent c70c627fc9
commit 8ee23e6168
1 changed files with 4 additions and 9 deletions

View File

@ -471,18 +471,14 @@ describe.each([
function orderTable(): Table { function orderTable(): Table {
return { return {
name: "orders", name: "orders",
primary: ["id"], primary: ["OrderID"],
schema: { schema: {
id: {
type: FieldType.AUTO,
name: "id",
},
Country: { Country: {
type: FieldType.STRING, type: FieldType.STRING,
name: "Country", name: "Country",
}, },
OrderID: { OrderID: {
type: FieldType.STRING, type: FieldType.NUMBER,
name: "OrderID", name: "OrderID",
}, },
Story: { Story: {
@ -521,10 +517,9 @@ describe.each([
expect(row.body.Story).toBeUndefined() expect(row.body.Story).toBeUndefined()
expect(row.body).toEqual({ expect(row.body).toEqual({
...defaultRowFields, ...defaultRowFields,
OrderID: "1111", OrderID: 1111,
Country: "Aussy", Country: "Aussy",
id: 1, _id: createRowResponse._id,
_id: "%5B1%5D",
_rev: createRowResponse._rev, _rev: createRowResponse._rev,
tableId: table._id, tableId: table._id,
}) })