Skip to content

Commit

Permalink
Fix test, linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fabgo committed Oct 18, 2024
1 parent 52043b7 commit 039f839
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/commands/__tests__/login.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This file is part of @p0security/cli
You should have received a copy of the GNU General Public License along with @p0security/cli. If not, see <https://www.gnu.org/licenses/>.
**/
import { bootstrapConfig } from "../../drivers/env";
import { pluginLoginMap } from "../../plugins/login";
import { mockGetDoc } from "../../testing/firestore";
import { login } from "../login";
Expand All @@ -23,6 +24,7 @@ jest.mock("../../drivers/auth", () => ({
jest.mock("../../drivers/config", () => ({
...jest.requireActual("../../drivers/config"),
saveConfig: jest.fn(),
getTenantConfig: jest.fn(() => bootstrapConfig),
}));
jest.mock("../../drivers/stdio");
jest.mock("../../plugins/login");
Expand Down
7 changes: 1 addition & 6 deletions src/commands/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,10 @@ import {
authenticate,
IDENTITY_CACHE_PATH,
IDENTITY_FILE_PATH,
loadCredentials,
} from "../drivers/auth";
import { saveConfig } from "../drivers/config";
import { bootstrapConfig } from "../drivers/env";
import {
authenticateToFirebase,
fsShutdownGuard,
publicDoc,
} from "../drivers/firestore";
import { fsShutdownGuard, publicDoc } from "../drivers/firestore";
import { print2 } from "../drivers/stdio";
import { pluginLoginMap } from "../plugins/login";
import { TokenResponse } from "../types/oidc";
Expand Down

0 comments on commit 039f839

Please sign in to comment.