Fix tests

This commit is contained in:
Adria Navarro 2024-12-18 10:55:32 +01:00
parent b538125d1f
commit b81e43ed59
2 changed files with 6 additions and 3 deletions

View File

@ -1902,7 +1902,7 @@ if (descriptions.length) {
it("tables and views can contain whitespaces", async () => { it("tables and views can contain whitespaces", async () => {
const table = await config.api.table.save( const table = await config.api.table.save(
saveTableRequest({ saveTableRequest({
name: "table with spaces", name: `table with spaces ${generator.hash()}`,
schema: { schema: {
name: { name: {
type: FieldType.STRING, type: FieldType.STRING,

View File

@ -46,8 +46,11 @@ export class ViewV2API extends TestAPI {
} }
get = async (viewId: string) => { get = async (viewId: string) => {
return (await this._get<ViewResponseEnriched>(`/api/v2/views/${viewId}`)) return (
.data await this._get<ViewResponseEnriched>(
`/api/v2/views/${encodeURIComponent(viewId)}`
)
).data
} }
fetch = async (expectations?: Expectations) => { fetch = async (expectations?: Expectations) => {