Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mjnagel committed Dec 4, 2024
1 parent b374cbc commit 3ec3f1c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/pepr/operator/controllers/network/generators/kubeAPI.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> = {
items: T[];
};

jest.mock("pepr", () => {
const originalModule = jest.requireActual("pepr") as object;
return {
Expand All @@ -15,12 +19,6 @@ jest.mock("pepr", () => {
};
});

import { K8s } from "pepr";

type KubernetesList<T> = {
items: T[];
};

describe("updateAPIServerCIDR", () => {
const mockApply = jest.fn();
const mockGet = jest.fn<() => Promise<KubernetesList<kind.NetworkPolicy>>>();
Expand Down

0 comments on commit 3ec3f1c

Please sign in to comment.