1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-17 09:18:42 +00:00

Merge pull request from sharelatex/spd-open-in-overleaf-zip_uri

Add zip_uri and publisher_slug to Open In Overleaf API

GitOrigin-RevId: 2be4b7a0fe521fc4a4415100ac20190bf6e0df6a
This commit is contained in:
Simon Detheridge 2018-12-10 13:12:34 +00:00 committed by sharelatex
parent e42a3d1dc5
commit 22cd3f9273
2 changed files with 9 additions and 1 deletions
services/web/test
acceptance/coffee/helpers
unit/coffee/References

View file

@ -36,6 +36,8 @@ module.exports = MockV1Api =
existingEmails: []
brands: {}
setAffiliations: (affiliations) -> @affiliations = affiliations
run: () ->
@ -85,6 +87,12 @@ module.exports = MockV1Api =
app.delete "/api/v2/users/:userId/affiliations/:email", (req, res, next) =>
res.sendStatus 204
app.get "/api/v2/brands/:slug", (req, res, next) =>
if brand = @brands[req.params.slug]
res.json brand
else
res.sendStatus 404
app.get '/universities/list', (req, res, next) ->
res.json []

View file

@ -114,7 +114,7 @@ describe "ReferencesController", ->
@res.json.calledWith(@fakeResponseData).should.equal true
done()
describe 'there is no dataaaaaaa', ->
describe 'there is no data', ->
beforeEach ->
@ReferencesHandler.indexAll.callsArgWith(1)