Prefer const vs let for variables that are only declared once
Requires that variable declarations use `const` instead of `let` and `var` if possible. This is mostly for code readability, performance wins are debatable.
This commit is contained in:
@@ -33,7 +33,7 @@ describe('ColorManager', () => {
|
||||
|
||||
describe('constructor', () => {
|
||||
it('should fill all colors with values', () => {
|
||||
for (let key of Object.keys(cm.colors)) {
|
||||
for (const key of Object.keys(cm.colors)) {
|
||||
if (key !== 'ansi') {
|
||||
// A #rrggbb or rgba(...)
|
||||
assert.ok(cm.colors[key].css.length >= 7);
|
||||
|
||||
Reference in New Issue
Block a user