mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 18:11:11 +08:00
Ship a content workspace you choose, one exec tool for every language, Mastery Path modes that gate its tools, and Settings that grades readiness instead of listing faults. Release notes: assets/releases/ver1-6-5.md
17 lines
477 B
TypeScript
17 lines
477 B
TypeScript
import assert from "node:assert/strict";
|
|
import test from "node:test";
|
|
|
|
import { previewKindFor } from "../components/chat/preview/previewerFor";
|
|
|
|
test("video attachments use the native video preview", () => {
|
|
assert.equal(previewKindFor({ filename: "lesson.mp4" }), "video");
|
|
assert.equal(
|
|
previewKindFor({
|
|
filename: "generated-file",
|
|
mimeType: "video/webm",
|
|
}),
|
|
"video",
|
|
);
|
|
assert.equal(previewKindFor({ filename: "clip.MOV" }), "video");
|
|
});
|