1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

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

View file

@ -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
} }