Fixing test case to update schema when updating column name.
This commit is contained in:
parent
9da10c790e
commit
2876085b61
|
@ -129,12 +129,20 @@ describe.each([
|
|||
name: "test",
|
||||
})
|
||||
|
||||
const { name, ...otherColumns } = testTable.schema
|
||||
const updatedTable = await config.api.table.save({
|
||||
...testTable,
|
||||
_rename: {
|
||||
old: "name",
|
||||
updated: "updatedName",
|
||||
},
|
||||
schema: {
|
||||
...otherColumns,
|
||||
updatedName: {
|
||||
...name,
|
||||
name: "updatedName",
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
expect(updatedTable.name).toEqual(testTable.name)
|
||||
|
|
Loading…
Reference in New Issue