Skip to content

Commit

Permalink
test: update
Browse files Browse the repository at this point in the history
  • Loading branch information
sukovanej committed Sep 25, 2024
1 parent 86da48c commit 7b43ef4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/effect-http-node/test/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ it.scoped(
)

expect(result.message).toEqual(
"Failed to encode headers. Expected { readonly another-header: string; readonly x-my-header: NumberFromString }, actual undefined"
"Failed to encode headers. Expected { readonly x-my-header: NumberFromString; readonly another-header: string }, actual undefined"
)
expect(result.side).toEqual("client")

Expand Down
10 changes: 5 additions & 5 deletions packages/effect-http-node/test/handler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,10 @@ describe("error reporting", () => {
expect(yield* response.json).toEqual({
error: "Request validation error",
location: "query",
message: `{ readonly another: string; readonly value: "x" | "y" }
├─ ["another"]
message: `{ readonly value: "x" | "y"; readonly another: string }
├─ ["value"]
│ └─ is missing
└─ ["value"]
└─ ["another"]
└─ is missing`
})
}))
Expand All @@ -319,8 +319,8 @@ describe("error reporting", () => {
expect(yield* response.json).toEqual({
error: "Request validation error",
location: "query",
message: `{ readonly another: string; readonly value: "x" | "y" }
└─ ["another"]
message: `{ readonly value: "x" | "y"; readonly another: string }
└─ ["value"]
└─ is missing`
})
}))
Expand Down
10 changes: 5 additions & 5 deletions packages/effect-http/test/openapi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ describe("data types", () => {

expect(OpenApi.makeSchema(schema)).toStrictEqual({
type: "string",
description: "a string"
description: "a string that will be parsed into a number"
})
})
})
Expand Down Expand Up @@ -815,7 +815,7 @@ describe("objects", () => {
id: { type: "integer", description: "an integer" },
name: { type: "string", description: "a string" }
},
required: ["name", "id"]
required: ["id", "name"]
})
})

Expand All @@ -842,7 +842,7 @@ describe("objects", () => {
name: { type: "string", description: "a string" },
username: { type: "string", description: "a string" }
},
required: ["username", "id"]
required: ["id", "username"]
})
})

Expand All @@ -863,7 +863,7 @@ describe("objects", () => {
name: { description: "a string", type: "string" },
username: { description: "a string", type: "string" }
},
required: ["username", "id"]
required: ["id", "username"]
})
})
})
Expand Down Expand Up @@ -971,7 +971,7 @@ describe("description annotation", () => {
id: { type: "integer", description: "id description" },
name: { type: "string", enum: ["value"], description: "value description" }
},
required: ["name", "id"],
required: ["id", "name"],
description: "my description"
})
})
Expand Down

0 comments on commit 7b43ef4

Please sign in to comment.