diff --git a/lib/classes/PluginManager.test.js b/lib/classes/PluginManager.test.js index b41dd2b97..79a491788 100644 --- a/lib/classes/PluginManager.test.js +++ b/lib/classes/PluginManager.test.js @@ -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()', () => {