Skip to content

Commit 31a3bab

Browse files
committed
Use non-deprecated fn
1 parent cf00cb7 commit 31a3bab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/URLPath.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import {
3838
toURL,
3939
toURLO,
4040
} from "../src/URLPath"
41-
import { setParam } from "../src/URLSearchParams"
41+
import * as Params from "../src/URLSearchParams"
4242

4343
const arb: fc.Arbitrary<URLPath> = fc
4444
.webUrl({ withFragments: true, withQueryParameters: true })
@@ -374,7 +374,7 @@ describe("URLPath", () => {
374374
const u = new URL(validBase + s)
375375

376376
const pp = new URLSearchParams("?a=e&c=d")
377-
const r = pipe(u, fromURL, f(setParam("a")("e")))
377+
const r = pipe(u, fromURL, f(Params.upsertAt("a")("e")))
378378

379379
expect(u.searchParams).toEqual(p)
380380
expect(getParams(r)).toEqual(pp)

0 commit comments

Comments
 (0)