Fix callback defined in wrong describe block scope

This commit is contained in:
Alasdair Smith 2018-02-26 10:58:20 +00:00
parent e6f624c7a0
commit d79e226a20

View file

@ -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 () =>