Move cast

This commit is contained in:
Adria Navarro 2024-08-29 12:34:12 +02:00
parent d8f16ae014
commit 6028ddec84
1 changed files with 2 additions and 2 deletions

View File

@ -934,7 +934,7 @@ describe.each([
"from table",
async (view: ViewV2) => {
const table = await config.api.table.get(view.tableId)
return (table.views || {})[view.name]
return table.views![view.name] as ViewV2
},
],
])("read (%s)", (_, getDelegate) => {
@ -1050,7 +1050,7 @@ describe.each([
})
mocks.licenses.useCloudFree()
const view = (await getDelegate(res)) as ViewV2
const view = await getDelegate(res)
expect(view.schema?.one).toEqual(
expect.objectContaining({ visible: true, readonly: true })
)