Tidy
This commit is contained in:
parent
634d1ce127
commit
b1ff1c9f35
|
@ -23,6 +23,7 @@ interface AuthConfig {
|
||||||
type: AuthType
|
type: AuthType
|
||||||
config: BasicAuthConfig | BearerAuthConfig
|
config: BasicAuthConfig | BearerAuthConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
interface BasicAuthConfig {
|
interface BasicAuthConfig {
|
||||||
username: string,
|
username: string,
|
||||||
password: string,
|
password: string,
|
||||||
|
@ -170,7 +171,7 @@ module RestModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
processAuth(authConfigId: string) {
|
processAuth(authConfigId: string) {
|
||||||
if (!this.config.authConfigs) {
|
if (!this.config.authConfigs || !authConfigId) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const authConfig = this.config.authConfigs.filter(authConfig => authConfig.id === authConfigId)[0]
|
const authConfig = this.config.authConfigs.filter(authConfig => authConfig.id === authConfigId)[0]
|
||||||
|
|
|
@ -27,10 +27,6 @@ describe("REST Integration", () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// afterEach(() => {
|
|
||||||
// jest.clearAllMocks()
|
|
||||||
// })
|
|
||||||
|
|
||||||
it("calls the create method with the correct params", async () => {
|
it("calls the create method with the correct params", async () => {
|
||||||
const query = {
|
const query = {
|
||||||
path: "api",
|
path: "api",
|
||||||
|
|
Loading…
Reference in New Issue