Fix permissions tests.

This commit is contained in:
Sam Rose 2024-03-01 17:40:10 +00:00
parent 90f981724d
commit 594cd5ee56
No known key found for this signature in database
1 changed files with 6 additions and 1 deletions

View File

@ -26,9 +26,14 @@ export class ViewV2API extends TestAPI {
...viewData,
}
const exp: Expectations = {
status: 201,
...expectations,
}
const resp = await this._post<{ data: ViewV2 }>("/api/v2/views", {
body: view,
expectations,
expectations: exp,
})
return resp.data
}