Fix tests
This commit is contained in:
parent
b538125d1f
commit
b81e43ed59
|
@ -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,
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue