Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Sep 3, 2024
1 parent 68a6ab8 commit 1b67897
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/platform-node/test/HttpApi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe("HttpApi", () => {
it.scoped("class level annotations", () =>
Effect.gen(function*() {
const response = yield* HttpClientRequest.post("/users").pipe(
HttpClientRequest.unsafeJsonBody({ name: "boom" })
HttpClientRequest.bodyUnsafeJson({ name: "boom" })
)
assert.strictEqual(response.status, 400)
}).pipe(Effect.provide(HttpLive)))
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-node/test/HttpServer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ describe("HttpServer", () => {
)
const client = yield* makeTodoClient
const todo = yield* HttpClientRequest.post("/todos").pipe(
HttpClientRequest.urlParamsBody({ id: "1", title: "test" }),
HttpClientRequest.bodyUrlParams({ id: "1", title: "test" }),
client.execute,
Effect.scoped
)
Expand Down

0 comments on commit 1b67897

Please sign in to comment.