aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/assistant/test_files.js
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/assistant/test_files.js')
-rw-r--r--desktop/assistant/test_files.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/assistant/test_files.js b/desktop/assistant/test_files.js
index 5ece64f..80a855d 100644
--- a/desktop/assistant/test_files.js
+++ b/desktop/assistant/test_files.js
@@ -23,12 +23,13 @@ const F = new Function(src + "\nreturn { kind, chats, fromUrl, file, name };")()
const cases = {
"/a/report.pdf": "pdf", "/a/Report.PDF": "pdf", "/a/x.png": "image", "/a/x.JPEG": "image",
"/a/clip.mp4": "video", "/a/c.MKV": "video", "/a/src.tar.gz": "archive", "/a/b.7z": "archive",
- "/a/main.py": "text", "/a/notes.md": "text", "/a/pkg.SlackBuild": "text",
+ "/a/main.py": "code", "/a/notes.md": "text", "/a/pkg.SlackBuild": "code",
+ "/a/data.csv": "text", "/a/README.rst": "text", "/a/a.txt": "text", "/a/c.json": "code",
"/a/Makefile": "other", "/a/.bashrc": "other", "/a/x.bin": "other", "/a/dir.d/noext": "other",
};
for (const [p, k] of Object.entries(cases)) assert.strictEqual(F.kind(p), k, p);
-assert.ok(F.chats("pdf") && F.chats("image") && F.chats("text"));
+assert.ok(F.chats("pdf") && F.chats("image") && F.chats("text") && F.chats("code"));
assert.ok(!F.chats("video") && !F.chats("archive") && !F.chats("other"));
assert.strictEqual(F.fromUrl("file:///home/you/My%20Docs/caf%C3%A9.pdf"), "/home/you/My Docs/café.pdf");