Fix
This commit is contained in:
parent
c70c627fc9
commit
8ee23e6168
|
@ -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,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue