mirror of https://github.com/xfarrow/blink
Update test.js
This commit is contained in:
parent
8321e3121c
commit
4ae263662c
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue