diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index 3dc786876a2c..f79697347511 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -225,8 +225,8 @@ describe('BrowserWindow module', function () { assert.equal(isMainFrame, true) done() }) - let data = new Buffer(2 * 1024 * 1024).toString('base64') - w.loadURL('data:image/png;base64,' + data) + const data = new Buffer(2 * 1024 * 1024).toString('base64') + w.loadURL(`data:image/png;base64,${data}`) }) describe('POST navigations', function () {