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 () => {
|
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,
|
||||||
|
|
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue