Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

696 B
Raw Blame
import { describe, expect, it } from "vitest";

import { documentUploadRepresentationFormat } from "./document-upload-representation";

describe("documentUploadRepresentationFormat", () => {
  it.each([
    ["notes.md", "markdown"],
    ["notes.markdown", "markdown"],
    ["notes.txt", "plain_text"],
    ["trace.log", "plain_text"],
    ["notes.html", "html"],
    ["notes.htm", "html"],
    ["budget.xlsx", "xlsx"],
    ["deck.pptx", "pptx"],
    ["bundle.zip", "zip"],
    ["photo.png", "png"],
    ["icon.svg", "svg"],
    ["README", "binary"],
  ] as const)("maps %s to %s", (filename, format) => {
    expect(documentUploadRepresentationFormat({ name: filename })).toBe(format);
  });
});