diff --git a/test/services/central-alerts/v1/index.test.ts b/test/services/central-alerts/v1/index.test.ts index ba3bee36..b4b17903 100644 --- a/test/services/central-alerts/v1/index.test.ts +++ b/test/services/central-alerts/v1/index.test.ts @@ -99,10 +99,16 @@ describe("Central Alerts API v1", () => { "?limit=0x1&offset=-1", "?limit=%201%20&offset=0.0", "?%6cimit=1", - "?%6cimit=2&limit=1", + // Since hono#5495, encoded duplicates keep their string position + // and params resolve first-wins, so the encoded 1 wins here. + "?%6cimit=1&limit=2", "?limit=1&limit=2" ] }, + { + initial: "?limit=2", + variants: ["?%6cimit=2&limit=1", "?limit=2.0"] + }, { initial: "?limit=2&offset=1", variants: ["?offset=01&nonce=one&limit=2.0", "?limit=2&offset=1e0"]