Skip to content

Commit

Permalink
Use non-deprecated fn
Browse files Browse the repository at this point in the history
  • Loading branch information
samhh committed Apr 19, 2024
1 parent cf00cb7 commit 31a3bab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/URLPath.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
toURL,
toURLO,
} from "../src/URLPath"
import { setParam } from "../src/URLSearchParams"
import * as Params from "../src/URLSearchParams"

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

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

expect(u.searchParams).toEqual(p)
expect(getParams(r)).toEqual(pp)
Expand Down

0 comments on commit 31a3bab

Please sign in to comment.