Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Sep 26, 2024
1 parent 47d273d commit c4387ff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ vi.mock("../config.js", () => ({
TFE_ORGANIZATION: "mock-organization",
CTRLPLANE_API_URL: "https://mock.ctrlplane.url",
CTRLPLANE_API_KEY: "mock-api-key",
CTRLPLANE_WORKSPACE: "mock-workspace",
CTRLPLANE_WORKSPACE_ID: "mock-workspace",
CTRLPLANE_WORKSPACE_TARGET_NAME: "mock-workspace-target-name",
CTRLPLANE_SCANNER_NAME: "mock-scanner-name",
CRON_ENABLED: false,
Expand All @@ -40,7 +40,7 @@ beforeEach(() => {
describe("Scanner Module", () => {
it("should successfully scan and register targets", async () => {
vi.spyOn(env, "TFE_ORGANIZATION", "get").mockReturnValue("mock-org");
vi.spyOn(env, "CTRLPLANE_WORKSPACE", "get").mockReturnValue(
vi.spyOn(env, "CTRLPLANE_WORKSPACE_ID", "get").mockReturnValue(
"ctrlplane-workspace",
);
vi.spyOn(env, "CTRLPLANE_SCANNER_NAME", "get").mockReturnValue(
Expand Down

0 comments on commit c4387ff

Please sign in to comment.