From 4ae263662cc6b755fd640ed66f4a7192df005d7d Mon Sep 17 00:00:00 2001 From: xfarrow <49845537+xfarrow@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:59:13 +0100 Subject: [PATCH] Update test.js --- backend/apis/nodejs/src/tests/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/apis/nodejs/src/tests/test.js b/backend/apis/nodejs/src/tests/test.js index e405f46..19056c0 100644 --- a/backend/apis/nodejs/src/tests/test.js +++ b/backend/apis/nodejs/src/tests/test.js @@ -132,7 +132,7 @@ describe('Person tests', () => { }); // Get myself - it('should return a 200 status code for POST /persons/me', async () => { + it('should return a 200 status code for GET /persons/me', async () => { const response = await request(apiEndpoint) .get('/persons/me') .set("Authorization", `Bearer ${bearerToken}`) @@ -141,7 +141,7 @@ describe('Person tests', () => { }); // Get myself without token - it('should return a 401 status code for POST /persons/me', async () => { + it('should return a 401 status code for GET /persons/me', async () => { const response = await request(apiEndpoint) .get('/persons/me') .send();