From 3ec3f1cf24078a4bef6968c52f4096382d36309c Mon Sep 17 00:00:00 2001 From: Micah Nagel Date: Wed, 4 Dec 2024 11:59:13 -0700 Subject: [PATCH] chore: cleanup --- .../controllers/network/generators/kubeAPI.spec.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/pepr/operator/controllers/network/generators/kubeAPI.spec.ts b/src/pepr/operator/controllers/network/generators/kubeAPI.spec.ts index 51cb26f0f..6b886adec 100644 --- a/src/pepr/operator/controllers/network/generators/kubeAPI.spec.ts +++ b/src/pepr/operator/controllers/network/generators/kubeAPI.spec.ts @@ -4,9 +4,13 @@ */ import { beforeEach, describe, expect, it, jest } from "@jest/globals"; -import { kind } from "pepr"; +import { K8s, kind } from "pepr"; import { updateAPIServerCIDR } from "./kubeAPI"; +type KubernetesList = { + items: T[]; +}; + jest.mock("pepr", () => { const originalModule = jest.requireActual("pepr") as object; return { @@ -15,12 +19,6 @@ jest.mock("pepr", () => { }; }); -import { K8s } from "pepr"; - -type KubernetesList = { - items: T[]; -}; - describe("updateAPIServerCIDR", () => { const mockApply = jest.fn(); const mockGet = jest.fn<() => Promise>>();