1
0
Fork 0
mirror of synced 2024-08-18 11:31:28 +12:00

Merge pull request #10558 from Budibase/qa-core-improve-license-status-check

Add status check to license api
This commit is contained in:
Pedro Silva 2023-05-12 14:22:37 +01:00 committed by GitHub
commit 8ad2e27a25
2 changed files with 6 additions and 3 deletions

View file

@ -20,6 +20,12 @@ export default class LicenseAPI {
internal: true, internal: true,
} }
) )
if (response.status !== 200) {
throw new Error(
`Could not update license for accountId=${accountId}: ${response.status}`
)
}
return [response, json] return [response, json]
} }
} }

View file

@ -11,9 +11,6 @@ describe("Internal API - App Specific Roles & Permissions", () => {
await config.beforeAll() await config.beforeAll()
}) })
afterAll(async () => {
await config.afterAll()
})
afterAll(async () => { afterAll(async () => {
await config.afterAll() await config.afterAll()
}) })