File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ describe('apikey validation', () => {
21
21
mockFindApiKey . mockClear ( ) ;
22
22
} ) ;
23
23
24
- it ( 'Should fail with 400 if api-key header is not passed' , async ( ) => {
24
+ it ( 'Should response with 400 if api-key header is not passed' , async ( ) => {
25
25
const response = await request . get ( endpoint ) ;
26
26
expect ( response . status ) . toBe ( 400 ) ;
27
27
expect ( mockFindApiKey ) . toBeCalledTimes ( 0 ) ;
28
28
} ) ;
29
29
30
- it ( 'Should fail with 403 if wrong api-key header is passed' , async ( ) => {
30
+ it ( 'Should response with 403 if wrong api-key header is passed' , async ( ) => {
31
31
const wrongApiKey = '123' ;
32
32
const response = await request
33
33
. get ( endpoint )
@@ -37,7 +37,7 @@ describe('apikey validation', () => {
37
37
expect ( mockFindApiKey ) . toBeCalledWith ( wrongApiKey ) ;
38
38
} ) ;
39
39
40
- it ( 'Should pass with 404 if correct api-key header is passed and when route is not handelled' , async ( ) => {
40
+ it ( 'Should response with 404 if correct api-key header is passed and when route is not handelled' , async ( ) => {
41
41
const response = await request
42
42
. get ( endpoint )
43
43
. set ( 'x-api-key' , API_KEY ) ;
You can’t perform that action at this time.
0 commit comments