import { describe, it, expect } from "vitest";
import { MediaNotFoundError } from "@/entities/errors/media";

describe("MediaNotFoundError", () => {
  it("is an instance of Error", () => {
    const err = new MediaNotFoundError();
    expect(err).toBeInstanceOf(Error);
    expect(err).toBeInstanceOf(MediaNotFoundError);
  });

  it("has default message", () => {
    const err = new MediaNotFoundError();
    expect(err.message).toBe("Media not found");
  });

  it("accepts a custom message", () => {
    const err = new MediaNotFoundError("Custom message");
    expect(err.message).toBe("Custom message");
  });
});
