Skip to content
Snippets Groups Projects
Commit 3ebc6151 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

fix own user fetch in tests

parent ef02d241
Branches master
No related tags found
2 merge requests!20working endpoints and documentation,!18Resolve "Átfaktorálás"
Pipeline #4711 passed
...@@ -68,7 +68,7 @@ describe('/application "Mentor" Functionality', () => { ...@@ -68,7 +68,7 @@ describe('/application "Mentor" Functionality', () => {
// GET own // GET own
test(`GET own application`, async () => { test(`GET own application`, async () => {
await createGroups() await createGroups()
const ownUser = await authSession.get('/api/v1/extra/me') const ownUser = await authSession.get('/api/v1/user/me')
const newApplication = await Application.create( const newApplication = await Application.create(
Object.assign({}, fakeApplicationJson, { Object.assign({}, fakeApplicationJson, {
creator: ownUser.body.data.schacc, creator: ownUser.body.data.schacc,
......
...@@ -58,7 +58,7 @@ describe('/group "Mentor" Functionality', () => { ...@@ -58,7 +58,7 @@ describe('/group "Mentor" Functionality', () => {
}) })
// Create // Create
test(`Create group returns with allowed keys`, async () => { test(`Create group returns with allowed keys`, async () => {
const ownUser = await authSession.get('/api/v1/extra/me') const ownUser = await authSession.get('/api/v1/user/me')
const newActivity = await Activity.create(fakeActivityJson) const newActivity = await Activity.create(fakeActivityJson)
let response = await authSession.post(endpointUrl).send({ let response = await authSession.post(endpointUrl).send({
activity: newActivity._id, activity: newActivity._id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment