Fix permissions tests.
This commit is contained in:
parent
90f981724d
commit
594cd5ee56
|
@ -26,9 +26,14 @@ export class ViewV2API extends TestAPI {
|
||||||
...viewData,
|
...viewData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const exp: Expectations = {
|
||||||
|
status: 201,
|
||||||
|
...expectations,
|
||||||
|
}
|
||||||
|
|
||||||
const resp = await this._post<{ data: ViewV2 }>("/api/v2/views", {
|
const resp = await this._post<{ data: ViewV2 }>("/api/v2/views", {
|
||||||
body: view,
|
body: view,
|
||||||
expectations,
|
expectations: exp,
|
||||||
})
|
})
|
||||||
return resp.data
|
return resp.data
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue