From 47c8106a89788e719271187ed9966cc5c01014b9 Mon Sep 17 00:00:00 2001 From: Frank Schmid Date: Tue, 9 May 2017 18:59:03 +0200 Subject: [PATCH] Fixed unit tests --- test/createAliasStack.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/createAliasStack.test.js b/test/createAliasStack.test.js index 6a9b1c8..90b68a9 100644 --- a/test/createAliasStack.test.js +++ b/test/createAliasStack.test.js @@ -74,6 +74,8 @@ describe('createAliasStack', () => { providerRequestStub.returns(BbPromise.resolve(requestResult)); monitorStackStub.returns(BbPromise.resolve()); + serverless.service.provider.compiledCloudFormationAliasCreateTemplate = {}; + return expect(awsAlias.createAlias()).to.be.fulfilled .then(() => BbPromise.all([ expect(providerRequestStub).to.have.been.calledOnce, @@ -107,6 +109,8 @@ describe('createAliasStack', () => { tag2: 'component' }; + serverless.service.provider.compiledCloudFormationAliasCreateTemplate = {}; + return expect(awsAlias.createAlias()).to.be.fulfilled .then(() => BbPromise.all([ expect(providerRequestStub).to.have.been.calledOnce, @@ -266,7 +270,7 @@ describe('createAliasStack', () => { writeFileSyncStub.returns(); serverless.config.servicePath = 'path-to-service'; - serverless.service.provider.compiledCloudFormationAliasTemplate = template; + serverless.service.provider.compiledCloudFormationAliasCreateTemplate = template; return expect(awsAlias.writeAliasTemplateToDisk()).to.be.fulfilled .then(() => BbPromise.all([