Undo not required changes
This commit is contained in:
parent
559cb3d9e0
commit
0f53fa14ad
|
@ -186,46 +186,7 @@ describe("/tables", () => {
|
||||||
let testTable: Table
|
let testTable: Table
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
testTable = await config.createTable({
|
testTable = await config.createTable(testTable)
|
||||||
name: "TestTable",
|
|
||||||
type: "table",
|
|
||||||
schema: {
|
|
||||||
name: {
|
|
||||||
type: FieldType.STRING,
|
|
||||||
name: "name",
|
|
||||||
visible: true,
|
|
||||||
width: 80,
|
|
||||||
constraints: {
|
|
||||||
type: "string",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
description: {
|
|
||||||
type: FieldType.STRING,
|
|
||||||
name: "description",
|
|
||||||
visible: true,
|
|
||||||
width: 200,
|
|
||||||
constraints: {
|
|
||||||
type: "string",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
id: {
|
|
||||||
type: FieldType.NUMBER,
|
|
||||||
name: "id",
|
|
||||||
visible: true,
|
|
||||||
constraints: {
|
|
||||||
type: "number",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
hiddenField: {
|
|
||||||
type: FieldType.STRING,
|
|
||||||
name: "hiddenField",
|
|
||||||
visible: false,
|
|
||||||
constraints: {
|
|
||||||
type: "string",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
|
|
|
@ -19,14 +19,9 @@ function priceTable(): Table {
|
||||||
name: "Price",
|
name: "Price",
|
||||||
constraints: {},
|
constraints: {},
|
||||||
},
|
},
|
||||||
Currency: {
|
Category: {
|
||||||
type: FieldType.STRING,
|
type: FieldType.STRING,
|
||||||
name: "Currency",
|
name: "Category",
|
||||||
constraints: {},
|
|
||||||
},
|
|
||||||
ItemId: {
|
|
||||||
type: FieldType.STRING,
|
|
||||||
name: "ItemId",
|
|
||||||
constraints: {
|
constraints: {
|
||||||
type: "string",
|
type: "string",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue