mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add assertions for integration module call
This commit is contained in:
parent
e32406a4c4
commit
6822a0d838
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,7 @@ describe 'V1ProjectGetter', ->
|
||||||
|
|
||||||
it 'should call the callback with no arguments', ->
|
it 'should call the callback with no arguments', ->
|
||||||
@callback.calledWith().should.equal true
|
@callback.calledWith().should.equal true
|
||||||
|
@IntegrationProjectListGetter.findAllUsersProjects.called.should.equal false
|
||||||
|
|
||||||
describe 'with overleaf-integration-web-module', ->
|
describe 'with overleaf-integration-web-module', ->
|
||||||
beforeEach ->
|
beforeEach ->
|
||||||
|
@ -50,3 +51,4 @@ describe 'V1ProjectGetter', ->
|
||||||
|
|
||||||
it 'should call the callback with all the projects and tags', ->
|
it 'should call the callback with all the projects and tags', ->
|
||||||
@callback.calledWith(null, @response).should.equal true
|
@callback.calledWith(null, @response).should.equal true
|
||||||
|
@IntegrationProjectListGetter.findAllUsersProjects.called.should.equal true
|
||||||
|
|
Loading…
Reference in a new issue