gururajbm / custom-select-tdd

Initialization in variable declarations against recommended approach JS-0119
Anti-pattern
Minor
6 occurrences in this check
Variable 'wrapper' should be initialized on declaration
29}
30
31describe('if props are correctly passed', () => {
32    let wrapper;33    beforeEach(() => {
34        wrapper = setup();
35    });
Variable 'wrapper' should be initialized on declaration
34});
35
36describe('if props are correctly passed', () => {
37    let wrapper;38    beforeEach(() => {
39        wrapper = setup();
40    });
Variable 'wrapper' should be initialized on declaration
 65});
 66
 67describe('select component input text box events', () => {
 68    let wrapper, customSelectInputBox, inputbox; 69    beforeEach(() => {
 70        wrapper = setup();
 71        customSelectInputBox = findByTestAttr(wrapper, 'custom-select-input-box');
Variable 'customSelectInputBox' should be initialized on declaration
 65});
 66
 67describe('select component input text box events', () => {
 68    let wrapper, customSelectInputBox, inputbox; 69    beforeEach(() => {
 70        wrapper = setup();
 71        customSelectInputBox = findByTestAttr(wrapper, 'custom-select-input-box');
Variable 'wrapper' should be initialized on declaration
 31}
 32
 33describe('if props are correctly passed', () => {
 34    let wrapper; 35    beforeEach(() => {
 36        wrapper = setup();
 37    });
Variable 'inputbox' should be initialized on declaration
 65});
 66
 67describe('select component input text box events', () => {
 68    let wrapper, customSelectInputBox, inputbox; 69    beforeEach(() => {
 70        wrapper = setup();
 71        customSelectInputBox = findByTestAttr(wrapper, 'custom-select-input-box');