From a569303b7e6abaf1e5695c199faa64060e790d75 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 17 Aug 2017 15:36:52 +0100 Subject: [PATCH] simplify unusual unit test --- .../test/UnitTests/coffee/Compile/ClsiManagerTests.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/web/test/UnitTests/coffee/Compile/ClsiManagerTests.coffee b/services/web/test/UnitTests/coffee/Compile/ClsiManagerTests.coffee index 48cc4a4c53..6979a45c69 100644 --- a/services/web/test/UnitTests/coffee/Compile/ClsiManagerTests.coffee +++ b/services/web/test/UnitTests/coffee/Compile/ClsiManagerTests.coffee @@ -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