mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Remove validateInput as it's functionality is replaced
This commit is contained in:
parent
cdbc3bafbc
commit
4d3fa667ca
@ -1,16 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const BbPromise = require('bluebird');
|
||||
|
||||
module.exports = {
|
||||
validateInput() {
|
||||
if (!this.serverless.service.resources.aws.Resources) {
|
||||
throw new this.serverless.Error(
|
||||
'This plugin needs access to Resources section of the AWS CloudFormation template');
|
||||
}
|
||||
|
||||
return BbPromise.resolve();
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
require('./awsCompileApigEvents');
|
||||
require('./validateInput');
|
||||
require('./compilePermissions');
|
||||
require('./compileRestApi');
|
||||
require('./compileDeployment');
|
||||
|
||||
@ -1,23 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const expect = require('chai').expect;
|
||||
const AwsCompileApigEvents = require('../awsCompileApigEvents');
|
||||
const Serverless = require('../../../Serverless');
|
||||
|
||||
describe('#validate()', () => {
|
||||
let serverless;
|
||||
let awsCompileApigEvents;
|
||||
|
||||
beforeEach(() => {
|
||||
serverless = new Serverless();
|
||||
serverless.init();
|
||||
serverless.service.resources = { aws: {} };
|
||||
awsCompileApigEvents = new AwsCompileApigEvents(serverless);
|
||||
});
|
||||
|
||||
it('should throw an error if the AWS Resources section is not ' +
|
||||
'available in the service object', () => {
|
||||
expect(() => awsCompileApigEvents.validateInput()).to.throw(Error);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user