fix info test

This commit is contained in:
Nik Graf 2016-10-20 15:14:59 +02:00
parent ce5148b359
commit 03bace6d23

View File

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