Fixing linting.

This commit is contained in:
mike12345567 2023-06-12 16:29:41 +01:00
parent 2486937c43
commit d0d3e33606
2 changed files with 8 additions and 3 deletions

View File

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

View File

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