This commit is contained in:
2026-03-15 12:22:42 +01:00
parent cd99275933
commit 311ba5e7f3
558 changed files with 55182 additions and 22981 deletions

View File

@@ -277,6 +277,11 @@ describe("Tests the public API", () => {
]));
});
});
it("detects sqlite (SQLite 3 database file)", () => {
const file = getBytes("a.sqlite");
const result = index_1.filetypemime(file);
expect(result).toContain("application/vnd.sqlite3");
});
it("detects pdf (Libreoffice export)", () => {
// File created using libreoffice writter export to pdf
const file = getBytes("a.pdf");
@@ -301,4 +306,16 @@ describe("Tests the public API", () => {
const result = index_1.filetypemime(file);
expect(result).toContain("image/avif");
});
it("detects aac", () => {
// File created using FFmpeg on a.ogg
const file = getBytes("a.aac");
const result = index_1.filetypemime(file);
expect(result).toContain("audio/aac");
});
it("detects flac", () => {
// File created using FFmpeg on a.ogg
const file = getBytes("a.flac");
const result = index_1.filetypemime(file);
expect(result).toContain("audio/flac");
});
});