lint
This commit is contained in:
parent
e4f7fa7fad
commit
c69e604eaf
|
@ -3650,48 +3650,50 @@ if (descriptions.length) {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("Fields with spaces", () => {
|
if (isInternal || isMSSQL) {
|
||||||
let table: Table
|
describe("Fields with spaces", () => {
|
||||||
let otherTable: Table
|
let table: Table
|
||||||
let relatedRow: Row, mainRow: Row
|
let otherTable: Table
|
||||||
|
let relatedRow: Row
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
otherTable = await config.api.table.save(defaultTable())
|
otherTable = await config.api.table.save(defaultTable())
|
||||||
table = await config.api.table.save(
|
table = await config.api.table.save(
|
||||||
saveTableRequest({
|
saveTableRequest({
|
||||||
schema: {
|
schema: {
|
||||||
links: {
|
links: {
|
||||||
name: "links",
|
name: "links",
|
||||||
fieldName: "links",
|
fieldName: "links",
|
||||||
type: FieldType.LINK,
|
type: FieldType.LINK,
|
||||||
tableId: otherTable._id!,
|
tableId: otherTable._id!,
|
||||||
relationshipType: RelationshipType.ONE_TO_MANY,
|
relationshipType: RelationshipType.ONE_TO_MANY,
|
||||||
|
},
|
||||||
|
"nameWithSpace ": {
|
||||||
|
name: "nameWithSpace ",
|
||||||
|
type: FieldType.STRING,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"nameWithSpace ": {
|
})
|
||||||
name: "nameWithSpace ",
|
)
|
||||||
type: FieldType.STRING,
|
relatedRow = await config.api.row.save(otherTable._id!, {
|
||||||
},
|
name: generator.word(),
|
||||||
},
|
description: generator.paragraph(),
|
||||||
|
})
|
||||||
|
await config.api.row.save(table._id!, {
|
||||||
|
"nameWithSpace ": generator.word(),
|
||||||
|
tableId: table._id!,
|
||||||
|
links: [relatedRow._id],
|
||||||
})
|
})
|
||||||
)
|
|
||||||
relatedRow = await config.api.row.save(otherTable._id!, {
|
|
||||||
name: generator.word(),
|
|
||||||
description: generator.paragraph(),
|
|
||||||
})
|
})
|
||||||
mainRow = await config.api.row.save(table._id!, {
|
|
||||||
"nameWithSpace ": generator.word(),
|
|
||||||
tableId: table._id!,
|
|
||||||
links: [relatedRow._id],
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
it("Successfully returns rows that have spaces in their field names", async () => {
|
it("Successfully returns rows that have spaces in their field names", async () => {
|
||||||
const { rows } = await config.api.row.search(table._id!)
|
const { rows } = await config.api.row.search(table._id!)
|
||||||
expect(rows.length).toBe(1)
|
expect(rows.length).toBe(1)
|
||||||
const row = rows[0]
|
const row = rows[0]
|
||||||
expect(row["nameWithSpace "]).toBeDefined()
|
expect(row["nameWithSpace "]).toBeDefined()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
|
|
||||||
if (!isInternal && !isOracle) {
|
if (!isInternal && !isOracle) {
|
||||||
describe("bigint ids", () => {
|
describe("bigint ids", () => {
|
||||||
|
|
Loading…
Reference in New Issue