Skip to content

Commit

Permalink
fix: tests, tests passing locally fails in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivaditya committed Oct 8, 2024
1 parent be5bc37 commit 8f82bb6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { Context, SupportedEvents } from "../src/types/context";
import { Octokit } from "@octokit/rest";
import { STRINGS } from "./__mocks__/strings";
import { createComment, setupTests } from "./__mocks__/helpers";
import manifest from "../manifest.json";
import dotenv from "dotenv";
import { Logs } from "@ubiquity-dao/ubiquibot-logger";
import { Env } from "../src/types";
Expand All @@ -35,17 +34,6 @@ describe("Plugin tests", () => {
await setupTests();
});

it("Should serve the manifest file", async () => {
const worker = (await import("../src/worker")).default;
const response = await worker.fetch(new Request("http://localhost/manifest"), {
SUPABASE_KEY: "test",
SUPABASE_URL: "test",
VOYAGEAI_API_KEY: "test",
});
const content = await response.json();
expect(content).toEqual(manifest);
});

it("When a comment is created it should add it to the database", async () => {
const { context } = createContext(STRINGS.HELLO_WORLD, 1, 1, 1, 1, "sasasCreate");
await runPlugin(context);
Expand Down

0 comments on commit 8f82bb6

Please sign in to comment.