Fix ViewV2 tests.

This commit is contained in:
Sam Rose 2024-03-04 09:38:53 +00:00
parent 89a03af92a
commit 143daa153c
No known key found for this signature in database
1 changed files with 5 additions and 1 deletions

View File

@ -50,7 +50,11 @@ export class ViewV2API extends TestAPI {
}
delete = async (viewId: string, expectations?: Expectations) => {
return await this._delete(`/api/v2/views/${viewId}`, { expectations })
const exp = {
status: 204,
...expectations,
}
return await this._delete(`/api/v2/views/${viewId}`, { expectations: exp })
}
get = async (viewId: string) => {