File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ describe('[Controller] Twitter', () => {
48
48
next = vi . fn ( ) as unknown as NextFunction ;
49
49
} ) ;
50
50
describe ( 'callback' , ( ) => {
51
- it ( 'returns code' , async ( ) => {
51
+ it ( 'should return code' , async ( ) => {
52
52
const spyAuthorizeTwitter = vi
53
53
. spyOn ( authorizeTwitterService , 'execute' )
54
54
. mockReturnThis ( ) ;
@@ -65,7 +65,7 @@ describe('[Controller] Twitter', () => {
65
65
} ) ;
66
66
67
67
describe ( 'login' , ( ) => {
68
- it ( 'return URLs when the token is valid' , async ( ) => {
68
+ it ( 'should return URLs when the token is valid' , async ( ) => {
69
69
const mockPayload = {
70
70
name : 'John Doe' ,
71
71
userId : '12345' ,
@@ -83,7 +83,7 @@ describe('[Controller] Twitter', () => {
83
83
expect ( res . json ) . toHaveBeenCalledWith ( expectedUrl ) ;
84
84
} ) ;
85
85
86
- it ( 'returns 401 when token is invalid ' , ( ) => {
86
+ it ( 'should returns 401 when the token is valid ' , ( ) => {
87
87
req . headers . authorization = undefined ;
88
88
89
89
authController . login ( req , res , next ) ;
You can’t perform that action at this time.
0 commit comments