This commit is contained in:
Shane Handley 2018-12-30 18:42:50 +11:00
parent 9b36522940
commit 2a40506dfd

View File

@ -1195,7 +1195,7 @@ describe('PluginManager', () => {
expect(pluginManagerInstance.validateServerlessConfigDependency(foo)).to.be.undefined;
});
it('should load if the configDependent property has a false value and config is null', () => {
it('should load if the configDependent property is false and config is null', () => {
pluginManagerInstance.config = null;
pluginManagerInstance.commands = {
@ -1209,7 +1209,7 @@ describe('PluginManager', () => {
expect(pluginManagerInstance.validateServerlessConfigDependency(foo)).to.be.undefined;
});
it('should throw an error if configDependent has a true value and no config is found', () => {
it('should throw an error if configDependent is true and no config is found', () => {
pluginManagerInstance.config = null;
pluginManagerInstance.commands = {
@ -1223,7 +1223,7 @@ describe('PluginManager', () => {
expect(() => { pluginManager.validateServerlessConfigDependency(foo); }).to.throw(Error);
});
it('should throw an error if configDependent has a true value and config was returned as an empty string', () => {
it('should throw an error if configDependent is true and config is an empty string', () => {
pluginManagerInstance.config = '';
pluginManagerInstance.commands = {
@ -1237,9 +1237,9 @@ describe('PluginManager', () => {
expect(() => { pluginManager.validateServerlessConfigDependency(foo); }).to.throw(Error);
});
it('should load if the configDependent property has a true value, and config exists', () => {
it('should load if the configDependent property is true and config exists', () => {
pluginManagerInstance.config = {
servicePath: 'foo'
servicePath: 'foo',
};
pluginManagerInstance.commands = {
@ -1252,8 +1252,6 @@ describe('PluginManager', () => {
expect(pluginManagerInstance.validateServerlessConfigDependency(foo)).to.be.undefined;
});
});
describe('#validateOptions()', () => {