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([