mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
adds test to check that aws sdk is not called with --noDeploy
This commit is contained in:
parent
97a3a74831
commit
d69cdbc569
@ -138,8 +138,11 @@ describe('createStack', () => {
|
||||
.stub(awsDeploy, 'writeCreateTemplateToDisk').returns(BbPromise.resolve());
|
||||
const createStub = sinon
|
||||
.stub(awsDeploy, 'create').returns(BbPromise.resolve());
|
||||
const awsRequestStub = sinon
|
||||
.stub(awsDeploy.provider, 'request');
|
||||
|
||||
return awsDeploy.createStack().then(() => {
|
||||
expect(awsRequestStub.called).to.be.equal(false);
|
||||
expect(writeCreateTemplateToDiskStub.calledOnce).to.be.equal(true);
|
||||
expect(createStub.called).to.be.equal(false);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user