From 2a40506dfd89303d91c745fc423d6f2b3a36556d Mon Sep 17 00:00:00 2001 From: Shane Handley Date: Sun, 30 Dec 2018 18:42:50 +1100 Subject: [PATCH] Linting --- lib/classes/PluginManager.test.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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()', () => {