diff --git a/test/unit/lib/utils/logDeprecation.test.js b/test/unit/lib/utils/logDeprecation.test.js index cdf865843..554544deb 100644 --- a/test/unit/lib/utils/logDeprecation.test.js +++ b/test/unit/lib/utils/logDeprecation.test.js @@ -7,7 +7,7 @@ const overrideStdoutWrite = require('process-utils/override-stdout-write'); const runServerless = require('../../../utils/run-serverless'); const ServerlessError = require('../../../../lib/serverless-error'); -describe('#logDeprecation()', () => { +describe('test/unit/lib/utils/logDeprecation.test.js', () => { let restoreEnv; let originalEnv; @@ -21,7 +21,7 @@ describe('#logDeprecation()', () => { restoreEnv(); }); - it('Should log deprecation message if not disabled and first time', () => { + it('should log deprecation message if not disabled and first time', () => { const logDeprecation = require('../../../../lib/utils/logDeprecation'); let stdoutData = ''; overrideStdoutWrite( @@ -34,7 +34,7 @@ describe('#logDeprecation()', () => { expect(stdoutData).to.include('https://www.serverless.com/framework/docs/deprecations/#CODE1'); }); - it('Should not log deprecation if disabled in env.SLS_DEPRECATION_DISABLE', () => { + it('should not log deprecation if disabled in env.SLS_DEPRECATION_DISABLE', () => { process.env.SLS_DEPRECATION_DISABLE = 'CODE1'; const logDeprecation = require('../../../../lib/utils/logDeprecation'); @@ -46,7 +46,7 @@ describe('#logDeprecation()', () => { expect(stdoutData).to.equal(''); }); - it('Should not log deprecation if disabled in serviceConfig', () => { + it('should not log deprecation if disabled in serviceConfig', () => { // We need original process env variables for npm-conf Object.assign(process.env, originalEnv); const logDeprecation = require('../../../../lib/utils/logDeprecation'); @@ -65,7 +65,7 @@ describe('#logDeprecation()', () => { }); }); - it('Should not log deprecation if disabled by wildcard in env', () => { + it('should not log deprecation if disabled by wildcard in env', () => { process.env.SLS_DEPRECATION_DISABLE = '*'; const logDeprecation = require('../../../../lib/utils/logDeprecation'); let stdoutData = ''; @@ -76,7 +76,7 @@ describe('#logDeprecation()', () => { expect(stdoutData).to.equal(''); }); - it('Should not log deprecation if disabled by wildcard in service config', () => { + it('should not log deprecation if disabled by wildcard in service config', () => { Object.assign(process.env, originalEnv); const logDeprecation = require('../../../../lib/utils/logDeprecation'); return runServerless({ @@ -94,7 +94,7 @@ describe('#logDeprecation()', () => { }); }); - it('Should throw on deprecation if env.SLS_DEPRECATION_NOTIFICATION_MODE=error', () => { + it('should throw on deprecation if env.SLS_DEPRECATION_NOTIFICATION_MODE=error', () => { process.env.SLS_DEPRECATION_NOTIFICATION_MODE = 'error'; const logDeprecation = require('../../../../lib/utils/logDeprecation'); expect(() => logDeprecation('CODE1', 'Start using deprecation log')) @@ -102,7 +102,7 @@ describe('#logDeprecation()', () => { .with.property('code', 'REJECTED_DEPRECATION_CODE1'); }); - it('Should throw on deprecation if error notifications mode set in service config', () => { + it('should throw on deprecation if error notifications mode set in service config', () => { const logDeprecation = require('../../../../lib/utils/logDeprecation'); expect(() => logDeprecation('CODE1', 'Start using deprecation log', { @@ -113,7 +113,7 @@ describe('#logDeprecation()', () => { .with.property('code', 'REJECTED_DEPRECATION_CODE1'); }); - it('Should not log deprecation twice', () => { + it('should not log deprecation twice', () => { let stdoutData = ''; overrideStdoutWrite( (data) => (stdoutData += data),