mirror of
https://github.com/electron/electron.git
synced 2026-02-07 13:45:08 -05:00
refactor: add prefer-const to .eslintrc + fix errors (#14880)
This commit is contained in:
committed by
Samuel Attard
parent
07161a8452
commit
3ad3ade828
@@ -71,7 +71,7 @@ describe('deprecations', () => {
|
||||
deprecations.setHandler(m => { msg = m })
|
||||
|
||||
const prop = 'itMustGo'
|
||||
let o = { [prop]: 0 }
|
||||
const o = { [prop]: 0 }
|
||||
|
||||
deprecate.removeProperty(o, prop)
|
||||
|
||||
@@ -88,7 +88,7 @@ describe('deprecations', () => {
|
||||
|
||||
const key = 'foo'
|
||||
const val = 'bar'
|
||||
let o = { [key]: val }
|
||||
const o = { [key]: val }
|
||||
deprecate.removeProperty(o, key)
|
||||
|
||||
for (let i = 0; i < 3; ++i) {
|
||||
@@ -104,7 +104,7 @@ describe('deprecations', () => {
|
||||
const oldProp = 'dingyOldName'
|
||||
const newProp = 'shinyNewName'
|
||||
|
||||
let o = { [oldProp]: 0 }
|
||||
const o = { [oldProp]: 0 }
|
||||
deprecate.renameProperty(o, oldProp, newProp)
|
||||
|
||||
expect(msg).to.be.a('string')
|
||||
|
||||
Reference in New Issue
Block a user