1
0
Fork 0
mirror of synced 2024-07-07 15:25:52 +12:00

Undo not required changes

This commit is contained in:
Adria Navarro 2023-07-24 15:00:38 +02:00
parent 559cb3d9e0
commit 0f53fa14ad
2 changed files with 3 additions and 47 deletions

View file

@ -186,46 +186,7 @@ describe("/tables", () => {
let testTable: Table
beforeEach(async () => {
testTable = await config.createTable({
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",
},
},
},
})
testTable = await config.createTable(testTable)
})
afterEach(() => {

View file

@ -19,14 +19,9 @@ function priceTable(): Table {
name: "Price",
constraints: {},
},
Currency: {
Category: {
type: FieldType.STRING,
name: "Currency",
constraints: {},
},
ItemId: {
type: FieldType.STRING,
name: "ItemId",
name: "Category",
constraints: {
type: "string",
},