Skip to content
Snippets Groups Projects
Verified Commit 6c9ec2f3 authored by Tim Alby's avatar Tim Alby Committed by David Mehren
Browse files

mock affiliations API in acceptance tests

parent daedb563
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ User = require "./helpers/User"
request = require "./helpers/request"
settings = require "settings-sharelatex"
{db, ObjectId} = require("../../../app/js/infrastructure/mongojs")
MockV1Api = require "./helpers/MockV1Api"
describe "UserEmails", ->
beforeEach (done) ->
......
......@@ -42,6 +42,11 @@ module.exports = MockV1Api =
@exportParams = Object.assign({}, req.body)
res.json exportId: @exportId
app.post "/api/v2/users/:userId/affiliations", (req, res, next) =>
res.sendStatus 201
app.delete "/api/v2/users/:userId/affiliations/:email", (req, res, next) =>
res.sendStatus 204
app.listen 5000, (error) ->
throw error if error?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment