1
0
Fork 0
mirror of synced 2024-08-09 15:17:57 +12:00
This commit is contained in:
Adria Navarro 2023-09-12 09:57:47 +02:00
parent c70c627fc9
commit 8ee23e6168

View file

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