1
0
Fork 0
mirror of synced 2024-07-09 08:16:34 +12:00
This commit is contained in:
Rory Powell 2021-12-08 10:52:08 +00:00
parent 9cbe03fd66
commit a237d31424
2 changed files with 2 additions and 5 deletions

View file

@ -23,6 +23,7 @@ interface AuthConfig {
type: AuthType
config: BasicAuthConfig | BearerAuthConfig
}
interface BasicAuthConfig {
username: string,
password: string,
@ -170,7 +171,7 @@ module RestModule {
}
processAuth(authConfigId: string) {
if (!this.config.authConfigs) {
if (!this.config.authConfigs || !authConfigId) {
return
}
const authConfig = this.config.authConfigs.filter(authConfig => authConfig.id === authConfigId)[0]

View file

@ -27,10 +27,6 @@ describe("REST Integration", () => {
})
})
// afterEach(() => {
// jest.clearAllMocks()
// })
it("calls the create method with the correct params", async () => {
const query = {
path: "api",