import { describe, it, expect, vi } from "vitest";
import { runExifScrubber } from "./run";
import type { ToolContext } from "../../core/plugins/plugin-types";

describe("EXIF Scrubber Plugin", () => {
  const mockContext: ToolContext = {
    signal: new AbortController().signal,
    reportProgress: vi.fn(),
    logger: {
      info: vi.fn(),
      warn: vi.fn(),
      error: vi.fn(),
    },
  };

  it("should throw error if no files provided", async () => {
    await expect(
      runExifScrubber(
        { files: [] },
        null,
        mockContext
      )
    ).rejects.toThrow("No files uploaded for scrubbing.");
  });
});
