Skip to content

Commit

Permalink
fix test for new fastify
Browse files Browse the repository at this point in the history
  • Loading branch information
yonatan.bendahan@gmail.com committed Oct 4, 2023
1 parent 1e1af01 commit 2e9d396
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@
"node": ">=12.x.x"
},
"dependencies": {
"fastify-plugin": "^4.2.1"
"fastify-plugin": "^4.5.1"
},
"devDependencies": {
"@ava/typescript": "^3.0.1",
"@types/node": "^12.7.8",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"ava": "^4.3.0",
"esbuild": "^0.14.30",
"eslint": "^8.17.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"fastify": "^4.5.3",
"prettier": "^2.0.5",
"ts-node": "^10.2.0",
"typescript": "^4.7.3"
"@ava/typescript": "^4.1.0",
"@types/node": "^20.8.2",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"ava": "^5.3.1",
"esbuild": "^0.19.4",
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"fastify": "^4.23.2",
"prettier": "^3.0.3",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
}
}
2 changes: 1 addition & 1 deletion test/regular-server-ts-and-js/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ test('/book GET should fail over no query string schema validation', async (t) =
});
t.is(
res.body,
`{"statusCode":400,"error":"Bad Request","message":"querystring must have required property 'name'"}`,
`{"statusCode":400,"code":"FST_ERR_VALIDATION","error":"Bad Request","message":"querystring must have required property 'name'"}`,
);
t.is(res.statusCode, 400);
});
Expand Down
2 changes: 1 addition & 1 deletion test/regular-server-windows/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ test('/book GET should fail over no query string schema validation', async (t) =
});
t.is(
res.body,
`{"statusCode":400,"error":"Bad Request","message":"querystring must have required property 'name'"}`,
'{"statusCode":400,"code":"FST_ERR_VALIDATION","error":"Bad Request","message":"querystring must have required property \'name\'"}',
);
t.is(res.statusCode, 400);
});
Expand Down
2 changes: 1 addition & 1 deletion test/regular-server/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ test('/book GET should fail over no query string schema validation', async (t) =
});
t.is(
res.body,
`{"statusCode":400,"error":"Bad Request","message":"querystring must have required property 'name'"}`,
'{"statusCode":400,"code":"FST_ERR_VALIDATION","error":"Bad Request","message":"querystring must have required property \'name\'"}',
);
t.is(res.statusCode, 400);
});
Expand Down

0 comments on commit 2e9d396

Please sign in to comment.