Update test.js

This commit is contained in:
xfarrow 2024-11-14 17:59:13 +01:00
parent 8321e3121c
commit 4ae263662c
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ describe('Person tests', () => {
}); });
// Get myself // 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) const response = await request(apiEndpoint)
.get('/persons/me') .get('/persons/me')
.set("Authorization", `Bearer ${bearerToken}`) .set("Authorization", `Bearer ${bearerToken}`)
@ -141,7 +141,7 @@ describe('Person tests', () => {
}); });
// Get myself without token // 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) const response = await request(apiEndpoint)
.get('/persons/me') .get('/persons/me')
.send(); .send();