Skip to content

Commit

Permalink
Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Schmid committed May 9, 2017
1 parent 60a03bc commit 47c8106
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/createAliasStack.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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([
Expand Down

0 comments on commit 47c8106

Please sign in to comment.