Fixing linting.
This commit is contained in:
parent
2486937c43
commit
d0d3e33606
|
@ -23,6 +23,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ BRANCH }}
|
||||||
- name: Use Node.js 14.x
|
- name: Use Node.js 14.x
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -60,9 +60,12 @@ export default class AccountAPI {
|
||||||
}
|
}
|
||||||
|
|
||||||
async delete(accountID: string) {
|
async delete(accountID: string) {
|
||||||
const [response, json] = await this.client.del(`/api/accounts/${accountID}`, {
|
const [response, json] = await this.client.del(
|
||||||
internal: true,
|
`/api/accounts/${accountID}`,
|
||||||
})
|
{
|
||||||
|
internal: true,
|
||||||
|
}
|
||||||
|
)
|
||||||
// can't use expect here due to use in global teardown
|
// can't use expect here due to use in global teardown
|
||||||
if (response.status !== 204) {
|
if (response.status !== 204) {
|
||||||
throw new Error(`Could not delete accountId=${accountID}`)
|
throw new Error(`Could not delete accountId=${accountID}`)
|
||||||
|
|
Loading…
Reference in New Issue