feat: prepare media resolver source kinds

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

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",
});
});
});