From e3eed25d3631826b1a2dea0a171ef54e4a937d65 Mon Sep 17 00:00:00 2001 From: Tianning Li Date: Mon, 12 Feb 2024 16:09:54 -0800 Subject: [PATCH] feat: update test --- test/plugin/fixtures/app.controller.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/plugin/fixtures/app.controller.ts b/test/plugin/fixtures/app.controller.ts index e407a9db7..8b6c35836 100644 --- a/test/plugin/fixtures/app.controller.ts +++ b/test/plugin/fixtures/app.controller.ts @@ -11,6 +11,10 @@ export class AppController { * create a Cat * * @remarks Creating a test cat + * + * @throws {500} Something is wrong. + * @throws {400} Bad Request. + * @throws {400} Missing parameters. * * @returns {Promise} * @memberof AppController @@ -75,6 +79,10 @@ let AppController = exports.AppController = class AppController { * * @remarks Creating a test cat * + * @throws {500} Something is wrong. + * @throws {400} Bad Request. + * @throws {400} Missing parameters. + * * @returns {Promise} * @memberof AppController */ @@ -109,6 +117,9 @@ let AppController = exports.AppController = class AppController { }; __decorate([ openapi.ApiOperation({ summary: \"create a Cat\", description: \"Creating a test cat\" }), + openapi.ApiResponse({ status: 500, description: "Something is wrong." }), + openapi.ApiResponse({ status: 400, description: "Bad Request." }), + openapi.ApiResponse({ status: 400, description: "Missing parameters." }), (0, common_1.Post)(), openapi.ApiResponse({ status: 201, type: Cat }) ], AppController.prototype, \"create\", null);