mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix callback defined in wrong describe block scope
This commit is contained in:
parent
e6f624c7a0
commit
d79e226a20
1 changed files with 5 additions and 3 deletions
|
@ -142,13 +142,15 @@ describe "ReferencesController", ->
|
|||
|
||||
describe 'index', ->
|
||||
|
||||
beforeEach ->
|
||||
@call = (callback) =>
|
||||
@controller.index @req, @res
|
||||
callback()
|
||||
|
||||
describe 'with docIds as an array and shouldBroadcast as false', ->
|
||||
|
||||
beforeEach ->
|
||||
@ReferencesHandler.index.callsArgWith(2, null, @fakeResponseData)
|
||||
@call = (callback) =>
|
||||
@controller.index @req, @res
|
||||
callback()
|
||||
|
||||
it 'should call ReferencesHandler.index', (done) ->
|
||||
@call () =>
|
||||
|
|
Loading…
Reference in a new issue