Update Bot (j'ai plus le repo sur GitHub)
Qui c'est la conne qui a delete le repo sur GitHub? C'EST MOIIIII
This commit is contained in:
17
node_modules/magic-bytes.js/dist/index.spec.js
generated
vendored
17
node_modules/magic-bytes.js/dist/index.spec.js
generated
vendored
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user