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 () => {
const table = await config.api.table.save(
saveTableRequest({
name: "table with spaces",
name: `table with spaces ${generator.hash()}`,
schema: {
name: {
type: FieldType.STRING,

View File

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