Split software arch desc for easier manintenance. Many fixes related to next video playing and remote playback
This commit is contained in:
@@ -123,6 +123,65 @@ describe("Tauri Command Parameter Names - Critical Pattern Test", () => {
|
||||
expect(Object.keys(params)).toContain("repositoryHandle");
|
||||
expect(Object.keys(params)).not.toContain("repository_handle");
|
||||
});
|
||||
|
||||
it("playlist_create: handle, name, itemIds (NOT item_ids)", () => {
|
||||
const params = {
|
||||
handle: "handle-123",
|
||||
name: "My Playlist",
|
||||
itemIds: ["track1", "track2"],
|
||||
};
|
||||
|
||||
expect(Object.keys(params)).toContain("itemIds");
|
||||
expect(Object.keys(params)).not.toContain("item_ids");
|
||||
});
|
||||
|
||||
it("playlist_get_items: handle, playlistId (NOT playlist_id)", () => {
|
||||
const params = {
|
||||
handle: "handle-123",
|
||||
playlistId: "pl-123",
|
||||
};
|
||||
|
||||
expect(Object.keys(params)).toContain("playlistId");
|
||||
expect(Object.keys(params)).not.toContain("playlist_id");
|
||||
});
|
||||
|
||||
it("playlist_add_items: playlistId, itemIds", () => {
|
||||
const params = {
|
||||
handle: "handle-123",
|
||||
playlistId: "pl-123",
|
||||
itemIds: ["t1", "t2"],
|
||||
};
|
||||
|
||||
expect(Object.keys(params)).toContain("playlistId");
|
||||
expect(Object.keys(params)).toContain("itemIds");
|
||||
expect(Object.keys(params)).not.toContain("playlist_id");
|
||||
expect(Object.keys(params)).not.toContain("item_ids");
|
||||
});
|
||||
|
||||
it("playlist_remove_items: playlistId, entryIds (NOT entry_ids)", () => {
|
||||
const params = {
|
||||
handle: "handle-123",
|
||||
playlistId: "pl-123",
|
||||
entryIds: ["e1", "e2"],
|
||||
};
|
||||
|
||||
expect(Object.keys(params)).toContain("entryIds");
|
||||
expect(Object.keys(params)).not.toContain("entry_ids");
|
||||
});
|
||||
|
||||
it("playlist_move_item: playlistId, itemId, newIndex (NOT new_index)", () => {
|
||||
const params = {
|
||||
handle: "handle-123",
|
||||
playlistId: "pl-123",
|
||||
itemId: "track1",
|
||||
newIndex: 2,
|
||||
};
|
||||
|
||||
expect(Object.keys(params)).toContain("newIndex");
|
||||
expect(Object.keys(params)).toContain("itemId");
|
||||
expect(Object.keys(params)).not.toContain("new_index");
|
||||
expect(Object.keys(params)).not.toContain("item_id");
|
||||
});
|
||||
});
|
||||
|
||||
describe("Nested struct fields also use camelCase (via serde rename_all)", () => {
|
||||
|
||||
Reference in New Issue
Block a user