mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
simplify unusual unit test
This commit is contained in:
parent
f4da089ee3
commit
a569303b7e
1 changed files with 4 additions and 4 deletions
|
@ -113,11 +113,11 @@ describe "ClsiManager", ->
|
|||
it "should call the sendRequestOnce method twice", ->
|
||||
@ClsiManager.sendRequestOnce.calledTwice.should.equal true
|
||||
|
||||
it "should call the sendRequestOnce method once with syncType:full", ->
|
||||
@ClsiManager.sendRequestOnce.withArgs(@project_id, @user_id, {syncType:"full"}).calledOnce.should.equal true
|
||||
it "should call the sendRequestOnce method with syncType:full", ->
|
||||
@ClsiManager.sendRequestOnce.calledWith(@project_id, @user_id, {syncType:"full"}).should.equal true
|
||||
|
||||
it "should call the sendRequestOnce method once without syncType:full", ->
|
||||
@ClsiManager.sendRequestOnce.withArgs(@project_id, @user_id, {}).calledOnce.should.equal true
|
||||
it "should call the sendRequestOnce method without syncType:full", ->
|
||||
@ClsiManager.sendRequestOnce.calledWith(@project_id, @user_id, {}).should.equal true
|
||||
|
||||
it "should call the callback with a success status", ->
|
||||
@callback.calledWith(null, @status, ).should.equal true
|
||||
|
|
Loading…
Reference in a new issue