Skip to content

Commit

Permalink
remove platform code
Browse files Browse the repository at this point in the history
  • Loading branch information
austencollins committed Jan 12, 2019
1 parent 45c65ba commit 6e316cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions lib/plugins/aws/deploy/lib/createStack.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ describe('createStack', () => {
const createStackStub = sandbox
.stub(awsDeploy.provider, 'request').resolves();
sandbox.stub(awsDeploy, 'monitorStack').resolves();
sandbox.stub(awsDeploy, 'createDeployment').resolves();

return awsDeploy.create().then(() => {
expect(createStackStub.args[0][2].Tags)
Expand All @@ -67,7 +66,6 @@ describe('createStack', () => {
const createStackStub = sandbox
.stub(awsDeploy.provider, 'request').resolves();
sandbox.stub(awsDeploy, 'monitorStack').resolves();
sandbox.stub(awsDeploy, 'createDeployment').resolves();

return awsDeploy.create().then(() => {
expect(createStackStub.args[0][2].RoleARN)
Expand All @@ -82,7 +80,6 @@ describe('createStack', () => {
const createStackStub = sinon
.stub(awsDeploy.provider, 'request').resolves();
sinon.stub(awsDeploy, 'monitorStack').resolves();
sinon.stub(awsDeploy, 'createDeployment').resolves();

return awsDeploy.create().then(() => {
expect(createStackStub.args[0][2].NotificationARNs)
Expand Down
7 changes: 0 additions & 7 deletions lib/plugins/aws/deploy/lib/validateTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ module.exports = {
` ${error.message}`,
].join('');
throw new Error(errorMessage);
}).then(() => {
if (!this.serverless.service.deployment || !this.serverless.service.deployment.deploymentId) {
return this.createDeployment().catch((error) => {
throw new Error(error);
});
}
return BbPromise.resolve();
});
},
};

0 comments on commit 6e316cc

Please sign in to comment.