feat: prepare media resolver source kinds

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
MythEclipseandClaude Opus 4.7 committed 2026-05-15 19:11:23 +07:00
1 parent 73901231c3
commit 6aeabc690f
5 files changed
+29 -3

No files matched your search

+9
View File
@@ -68,4 +68,13 @@ describe("resolveMediaSource", () => {
statusCode: 400,
} satisfies Partial<AppError>);
});
it("keeps direct URLs as generic URL sources", async () => {
await expect(
resolveMediaSource("https://cdn.example.com/song.mp3"),
).resolves.toMatchObject({
kind: "url",
source: "https://cdn.example.com/song.mp3",
});
});
});