Add status check to license api

This commit is contained in:
Pedro Silva 2023-05-12 11:14:00 +01:00
parent 2f96b797a0
commit 85c835e5f0
2 changed files with 4 additions and 3 deletions

View File

@ -20,6 +20,10 @@ export default class LicenseAPI {
internal: true,
}
)
if (response.status !== 200) {
throw new Error(`License Error: ${response.status}`)
}
return [response, json]
}
}

View File

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