test(api): every filter key the client sends is one the backend reads
FastAPI ignores an unknown query parameter, so a misspelt or renamed key silently stops a filter while its chip still shows. Contract tests read routes/feed.py _feed_params and plex/query.py LibraryFilters. The superseded feedCount/facets calls and keys are removed.
This commit is contained in:
@@ -12,10 +12,6 @@ describe("qk — bare vs parameterized branch", () => {
|
||||
it("collapses to the bare prefix key only when no arg is given", () => {
|
||||
expect(qk.feed()).toEqual(["feed"]);
|
||||
expect(qk.feed(FILTERS)).toEqual(["feed", FILTERS]);
|
||||
expect(qk.feedCount()).toEqual(["feed-count"]);
|
||||
expect(qk.feedCount(FILTERS)).toEqual(["feed-count", FILTERS]);
|
||||
expect(qk.facets()).toEqual(["facets"]);
|
||||
expect(qk.facets(FILTERS)).toEqual(["facets", FILTERS]);
|
||||
expect(qk.feedSummary()).toEqual(["feed-summary"]);
|
||||
expect(qk.feedSummary(FILTERS)).toEqual(["feed-summary", FILTERS]);
|
||||
expect(qk.playlist()).toEqual(["playlist"]);
|
||||
|
||||
Reference in New Issue
Block a user