From d69cdbc569f8a06b9a80a4da22eba270c277faad Mon Sep 17 00:00:00 2001 From: Eetu Tuomala Date: Tue, 8 Nov 2016 23:33:00 +0200 Subject: [PATCH] adds test to check that aws sdk is not called with --noDeploy --- lib/plugins/aws/deploy/tests/createStack.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/plugins/aws/deploy/tests/createStack.js b/lib/plugins/aws/deploy/tests/createStack.js index 8e99bbabb..61f87b5fa 100644 --- a/lib/plugins/aws/deploy/tests/createStack.js +++ b/lib/plugins/aws/deploy/tests/createStack.js @@ -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); });