Skip to content

Commit

Permalink
tests: update fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Jul 1, 2024
1 parent c681e26 commit a816178
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oak/acorn",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.2",
"exports": { ".": "./mod.ts" },
"tasks": {
"bench": "deno bench",
Expand All @@ -9,7 +9,7 @@
"test": "deno test --allow-net --allow-env --allow-hrtime"
},
"imports": {
"@logtape/logtape": "jsr:@logtape/logtape@^0.4",
"@logtape/logtape": "jsr:@kitsonk/logtape@^0.5",
"@oak/commons": "jsr:@oak/commons@^0.12",
"@std/assert": "jsr:@std/assert@^0.226",
"@std/http": "jsr:@std/http@^0.224",
Expand Down
4 changes: 2 additions & 2 deletions schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ Deno.test({
});

Deno.test({
name: "Schema - invalid response should should reject with 400",
name: "Schema - invalid response should should reject with 500",
async fn() {
const schema = new Schema({ response: v.object({ hello: v.number() }) });
const error = await assertRejects(async () => {
await schema.validateResponse({ hello: "world" });
});
assert(isHttpError(error));
assertEquals(error.status, 400);
assertEquals(error.status, 500);
},
});

Expand Down

0 comments on commit a816178

Please sign in to comment.