From 03bace6d237da383fdef89b1371dfe4fbf74deb2 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Thu, 20 Oct 2016 15:14:59 +0200 Subject: [PATCH] fix info test --- lib/plugins/aws/info/tests/index.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/plugins/aws/info/tests/index.js b/lib/plugins/aws/info/tests/index.js index f12d45f8f..757049512 100644 --- a/lib/plugins/aws/info/tests/index.js +++ b/lib/plugins/aws/info/tests/index.js @@ -165,13 +165,16 @@ describe('AwsInfo', () => { it('should gather with correct params', () => awsInfo.gather() .then(() => { - expect(describeStackStub.called).to.equal(true); - expect(describeStackStub.args[0][0]).to.equal('CloudFormation'); - expect(describeStackStub.args[0][1]).to.equal('describeStacks'); - expect(describeStackStub.args[0][2].StackName) - .to.equal(awsInfo.provider.getStackName(awsInfo.options.stage)); - expect(describeStackStub - .calledWith(awsInfo.options.stage, awsInfo.options.region)); + expect(describeStackStub.calledOnce).to.equal(true); + expect(describeStackStub.calledWithExactly( + 'CloudFormation', + 'describeStacks', + { + StackName: awsInfo.provider.getStackName(awsInfo.options.stage), + }, + awsInfo.options.stage, + awsInfo.options.region + )).to.be.equal(true); }) );