feat: prepare media resolver source kinds
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -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",
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user