mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Fix callback defined in wrong describe block scope
This commit is contained in:
@@ -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 () =>
|
||||
|
||||
Reference in New Issue
Block a user