Fix warnings and update tracability
This commit is contained in:
@@ -350,7 +350,7 @@ describe("Backend Integration - Refactored Business Logic", () => {
|
||||
const backendUrl = "https://server.com/Videos/item123/stream.mp4?maxWidth=1280&api_key=token";
|
||||
(invoke as any).mockResolvedValueOnce(backendUrl);
|
||||
|
||||
const url = await client.getVideoDownloadUrl("item123", "720p");
|
||||
const url = await client.getVideoDownloadUrl("item123", "medium");
|
||||
|
||||
expect(url).toBe(backendUrl);
|
||||
expect(invoke).toHaveBeenCalledWith(
|
||||
@@ -454,8 +454,8 @@ describe("Backend Integration - Refactored Business Logic", () => {
|
||||
it("should support complete flow: load → sort → display", async () => {
|
||||
(invoke as any).mockResolvedValueOnce({
|
||||
items: [
|
||||
{ id: "id1", name: "Album A", sortName: "A" },
|
||||
{ id: "id2", name: "Album B", sortName: "B" },
|
||||
{ id: "id1", name: "Album A" },
|
||||
{ id: "id2", name: "Album B" },
|
||||
],
|
||||
totalRecordCount: 2,
|
||||
});
|
||||
@@ -467,8 +467,8 @@ describe("Backend Integration - Refactored Business Logic", () => {
|
||||
});
|
||||
|
||||
// Backend returned pre-sorted items
|
||||
expect(result.items[0].sortName).toBe("A");
|
||||
expect(result.items[1].sortName).toBe("B");
|
||||
expect(result.items[0].name).toBe("Album A");
|
||||
expect(result.items[1].name).toBe("Album B");
|
||||
|
||||
// Frontend just displays them
|
||||
// No compareFn, no local sorting
|
||||
|
||||
Reference in New Issue
Block a user