From 32bd81f54f81ce90b95577759fca728e006b35ff Mon Sep 17 00:00:00 2001 From: Adhikansh Mittal Date: Fri, 19 Jun 2020 22:53:12 -0700 Subject: [PATCH] change the description --- .../src/__tests__/fixtures/controllers/user.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/authentication-jwt/src/__tests__/fixtures/controllers/user.controller.ts b/extensions/authentication-jwt/src/__tests__/fixtures/controllers/user.controller.ts index 1e5e913052d6..fc3a8eb108b4 100644 --- a/extensions/authentication-jwt/src/__tests__/fixtures/controllers/user.controller.ts +++ b/extensions/authentication-jwt/src/__tests__/fixtures/controllers/user.controller.ts @@ -64,7 +64,7 @@ export class UserController { @post('/users/signup', { responses: { '200': { - description: 'User Signup route', + description: 'User model instance', content: { 'application/json': { schema: { @@ -87,7 +87,7 @@ export class UserController { ): Promise { const password = await hash(newUserRequest.password, await genSalt()); delete newUserRequest.password; - var savedUser = await this.userRepository.create(newUserRequest); + const savedUser = await this.userRepository.create(newUserRequest); await this.userRepository.userCredentials(savedUser.id).create({password});