KOSASIH / Galactic-Chain

Initialization in variable declarations against recommended approach JS-0119
Anti-pattern
Minor
4 months ago4 months old
Variable 'contract' should be initialized on declaration
 2const { expect } = require('chai');
 3
 4describe('Contract1', function () {
 5  let contract; 6
 7  beforeEach(async function () {
 8    contract = await Contract1.new();