SQL Server fully passing.
This commit is contained in:
parent
477d17b53e
commit
1334f5dcc5
|
@ -46,9 +46,9 @@ jest.unmock("mssql")
|
||||||
const { basicRow } = setup.structures
|
const { basicRow } = setup.structures
|
||||||
|
|
||||||
describe.each([
|
describe.each([
|
||||||
// ["internal", undefined],
|
["internal", undefined],
|
||||||
// ["postgres", databaseTestProviders.postgres],
|
["postgres", databaseTestProviders.postgres],
|
||||||
// ["mysql", databaseTestProviders.mysql],
|
["mysql", databaseTestProviders.mysql],
|
||||||
["mssql", databaseTestProviders.mssql],
|
["mssql", databaseTestProviders.mssql],
|
||||||
])("/rows (%s)", (__, dsProvider) => {
|
])("/rows (%s)", (__, dsProvider) => {
|
||||||
const isInternal = !dsProvider
|
const isInternal = !dsProvider
|
||||||
|
@ -1604,35 +1604,35 @@ describe.each([
|
||||||
})
|
})
|
||||||
|
|
||||||
describe.each([
|
describe.each([
|
||||||
// [
|
[
|
||||||
// "relationship fields",
|
"relationship fields",
|
||||||
// (): Record<string, FieldSchema> => ({
|
(): Record<string, FieldSchema> => ({
|
||||||
// user: {
|
user: {
|
||||||
// name: "user",
|
name: "user",
|
||||||
// relationshipType: RelationshipType.ONE_TO_MANY,
|
relationshipType: RelationshipType.ONE_TO_MANY,
|
||||||
// type: FieldType.LINK,
|
type: FieldType.LINK,
|
||||||
// tableId: o2mTable._id!,
|
tableId: o2mTable._id!,
|
||||||
// fieldName: "fk_o2m",
|
fieldName: "fk_o2m",
|
||||||
// },
|
},
|
||||||
// users: {
|
users: {
|
||||||
// name: "users",
|
name: "users",
|
||||||
// relationshipType: RelationshipType.MANY_TO_MANY,
|
relationshipType: RelationshipType.MANY_TO_MANY,
|
||||||
// type: FieldType.LINK,
|
type: FieldType.LINK,
|
||||||
// tableId: m2mTable._id!,
|
tableId: m2mTable._id!,
|
||||||
// fieldName: "fk_m2m",
|
fieldName: "fk_m2m",
|
||||||
// },
|
},
|
||||||
// }),
|
}),
|
||||||
// (tableId: string) =>
|
(tableId: string) =>
|
||||||
// config.api.row.save(tableId, {
|
config.api.row.save(tableId, {
|
||||||
// name: uuid.v4(),
|
name: uuid.v4(),
|
||||||
// description: generator.paragraph(),
|
description: generator.paragraph(),
|
||||||
// tableId,
|
tableId,
|
||||||
// }),
|
}),
|
||||||
// (row: Row) => ({
|
(row: Row) => ({
|
||||||
// _id: row._id,
|
_id: row._id,
|
||||||
// primaryDisplay: row.name,
|
primaryDisplay: row.name,
|
||||||
// }),
|
}),
|
||||||
// ],
|
],
|
||||||
[
|
[
|
||||||
"bb reference fields",
|
"bb reference fields",
|
||||||
(): Record<string, FieldSchema> => ({
|
(): Record<string, FieldSchema> => ({
|
||||||
|
@ -1960,8 +1960,8 @@ describe.each([
|
||||||
]
|
]
|
||||||
|
|
||||||
await config.api.row.save(tableId, rows[0])
|
await config.api.row.save(tableId, rows[0])
|
||||||
// await config.api.row.save(tableId, rows[1])
|
await config.api.row.save(tableId, rows[1])
|
||||||
// await config.api.row.save(tableId, rows[2])
|
await config.api.row.save(tableId, rows[2])
|
||||||
|
|
||||||
const res = await config.api.row.search(tableId)
|
const res = await config.api.row.search(tableId)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue