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); }) );