Skip to content

Commit ec46db5

Browse files
committed
change test message
1 parent 974909a commit ec46db5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/auth/apikey.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ describe('apikey validation', () => {
2121
mockFindApiKey.mockClear();
2222
});
2323

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 () => {
2525
const response = await request.get(endpoint);
2626
expect(response.status).toBe(400);
2727
expect(mockFindApiKey).toBeCalledTimes(0);
2828
});
2929

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 () => {
3131
const wrongApiKey = '123';
3232
const response = await request
3333
.get(endpoint)
@@ -37,7 +37,7 @@ describe('apikey validation', () => {
3737
expect(mockFindApiKey).toBeCalledWith(wrongApiKey);
3838
});
3939

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 () => {
4141
const response = await request
4242
.get(endpoint)
4343
.set('x-api-key', API_KEY);

0 commit comments

Comments
 (0)