We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
URL
HttpClientRequest.prependUrl
1 parent 4a4c85a commit dadecb1Copy full SHA for dadecb1
packages/platform/test/HttpClientRequest.test.ts
@@ -0,0 +1,19 @@
1
+import * as HttpClientRequest from "@effect/platform/HttpClientRequest"
2
+import { describe, it } from "@effect/vitest"
3
+import { deepStrictEqual } from "@effect/vitest/utils"
4
+
5
+describe("HttpClientRequest", () => {
6
+ const intialRequest = HttpClientRequest.make("GET")("/test")
7
8
+ it("prependUrl with a string", () => {
9
+ const result = intialRequest.pipe(HttpClientRequest.prependUrl("https://example.com"))
10
11
+ deepStrictEqual(result.url, "https://example.com/test")
12
+ })
13
14
+ it("prependUrl with an URL instance", () => {
15
+ const result = intialRequest.pipe(HttpClientRequest.prependUrl(new URL("https://example.com")))
16
17
18
19
+})
0 commit comments