mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Linting
This commit is contained in:
parent
9b36522940
commit
2a40506dfd
@ -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()', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user