Fixing test case.
This commit is contained in:
parent
a190feb4ea
commit
a27c28ccdf
|
@ -15,7 +15,7 @@ import {
|
|||
} from "@budibase/types"
|
||||
import * as linkRows from "../../../db/linkedRows"
|
||||
import isEqual from "lodash/isEqual"
|
||||
import { cloneDeep } from "lodash/fp"
|
||||
import { cloneDeep, merge } from "lodash/fp"
|
||||
import sdk from "../../../sdk"
|
||||
import * as pro from "@budibase/pro"
|
||||
|
||||
|
@ -164,10 +164,7 @@ export async function finaliseRow(
|
|||
|
||||
await db.put(row)
|
||||
const retrieved = await db.tryGet<Row>(row._id)
|
||||
enrichedRow = {
|
||||
...enrichedRow,
|
||||
...retrieved,
|
||||
}
|
||||
enrichedRow = merge(retrieved, enrichedRow)
|
||||
enrichedRow = await processFormulas(table, enrichedRow, {
|
||||
dynamic: false,
|
||||
})
|
||||
|
|
|
@ -85,7 +85,7 @@ function encodeJS(binding: string) {
|
|||
return `{{ js "${Buffer.from(binding).toString("base64")}"}}`
|
||||
}
|
||||
|
||||
const descriptions = datasourceDescribe({ exclude: [DatabaseName.MONGODB] })
|
||||
const descriptions = datasourceDescribe({ only: [DatabaseName.SQS] })
|
||||
|
||||
if (descriptions.length) {
|
||||
describe.each(descriptions)(
|
||||
|
@ -2571,12 +2571,14 @@ if (descriptions.length) {
|
|||
let tableId: string
|
||||
let o2mData: Row[]
|
||||
let m2mData: Row[]
|
||||
let isRelationship: boolean
|
||||
|
||||
beforeAll(async () => {
|
||||
const table = await config.api.table.save(
|
||||
defaultTable({ schema: relSchema() })
|
||||
)
|
||||
tableId = table._id!
|
||||
isRelationship = relSchema().user.type === FieldType.LINK
|
||||
|
||||
o2mData = [
|
||||
await dataGenerator(o2mTable._id!),
|
||||
|
@ -2763,6 +2765,8 @@ if (descriptions.length) {
|
|||
type: isInternal ? "row" : undefined,
|
||||
createdAt: isInternal ? new Date().toISOString() : undefined,
|
||||
updatedAt: isInternal ? new Date().toISOString() : undefined,
|
||||
users: isRelationship ? undefined : [],
|
||||
user: isRelationship ? undefined : [],
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue