mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
fix info test
This commit is contained in:
parent
ce5148b359
commit
03bace6d23
@ -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);
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user