Enable prefer-const lint rule (#3202)
This commit is contained in:
committed by
Florent Vilmart
parent
a6c988176e
commit
ca286b7108
@@ -94,7 +94,7 @@ describe('commander additions', () => {
|
||||
'PROGRAM_ARG_0': 'arg0ENVValue',
|
||||
'PROGRAM_ARG_1': 'arg1ENVValue',
|
||||
});
|
||||
let options = commander.getOptions();
|
||||
const options = commander.getOptions();
|
||||
expect(options.arg2).toBe(8888);
|
||||
expect(options.arg3).toBe('hello'); //config value
|
||||
expect(options.arg4).toBe('/1');
|
||||
@@ -123,7 +123,7 @@ describe('commander additions', () => {
|
||||
it('should load config from apps', (done) => {
|
||||
commander.loadDefinitions(testDefinitions);
|
||||
commander.parse(['node', './CLI.spec.js', './spec/configs/CLIConfigApps.json']);
|
||||
let options = commander.getOptions();
|
||||
const options = commander.getOptions();
|
||||
expect(options.arg1).toBe('my_app');
|
||||
expect(options.arg2).toBe(8888);
|
||||
expect(options.arg3).toBe('hello'); //config value
|
||||
@@ -142,8 +142,8 @@ describe('commander additions', () => {
|
||||
|
||||
describe('definitions', () => {
|
||||
it('should have valid types', () => {
|
||||
for (let key in definitions) {
|
||||
let definition = definitions[key];
|
||||
for (const key in definitions) {
|
||||
const definition = definitions[key];
|
||||
expect(typeof definition).toBe('object');
|
||||
if (typeof definition.env !== 'undefined') {
|
||||
expect(typeof definition.env).toBe('string');
|
||||
@@ -161,8 +161,8 @@ describe('definitions', () => {
|
||||
|
||||
describe('LiveQuery definitions', () => {
|
||||
it('should have valid types', () => {
|
||||
for (let key in liveQueryDefinitions) {
|
||||
let definition = liveQueryDefinitions[key];
|
||||
for (const key in liveQueryDefinitions) {
|
||||
const definition = liveQueryDefinitions[key];
|
||||
expect(typeof definition).toBe('object');
|
||||
if (typeof definition.env !== 'undefined') {
|
||||
expect(typeof definition.env).toBe('string');
|
||||
|
||||
Reference in New Issue
Block a user