overleaf/services/web/test/acceptance/coffee/helpers/MockDocUpdaterApi.coffee

13 lines
259 B
CoffeeScript
Raw Normal View History

express = require("express")
app = express()
module.exports = MockDocUpdaterApi =
run: () ->
app.post "/project/:project_id/flush", (req, res, next) =>
res.sendStatus 200
app.listen 3003, (error) ->
throw error if error?
MockDocUpdaterApi.run()