mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-17 09:18:42 +00:00
Merge pull request #1237 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:
parent
e42a3d1dc5
commit
22cd3f9273
2 changed files with 9 additions and 1 deletions
services/web/test
|
@ -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 []
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue