Commit 3ebc6151 authored by rlacko's avatar rlacko 💬
Browse files

fix own user fetch in tests

parent ef02d241
Pipeline #4711 passed with stages
in 1 minute and 42 seconds
......@@ -68,7 +68,7 @@ describe('/application "Mentor" Functionality', () => {
// GET own
test(`GET own application`, async () => {
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(
Object.assign({}, fakeApplicationJson, {
creator: ownUser.body.data.schacc,
......
......@@ -58,7 +58,7 @@ describe('/group "Mentor" Functionality', () => {
})
// Create
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)
let response = await authSession.post(endpointUrl).send({
activity: newActivity._id,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment