diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index 7d1013046..2d612ba48 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -10,7 +10,7 @@ const qs = require('querystring') const http = require('http') const { closeWindow } = require('./window-helpers') const { emittedOnce } = require('./events-helpers') -const { resolverGetters } = require('./assert-helpers') +const { resolveGetters } = require('./assert-helpers') const { ipcRenderer, remote, screen } = require('electron') const { app, ipcMain, BrowserWindow, BrowserView, protocol, session, webContents } = remote @@ -1730,7 +1730,7 @@ describe('BrowserWindow module', () => { assert.strictEqual(test.pid, w.webContents.getOSProcessId()) assert.strictEqual(test.arch, remote.process.arch) assert.strictEqual(test.platform, remote.process.platform) - assert.deepStrictEqual(...resolverGetters(test.env, remote.process.env)) + assert.deepStrictEqual(...resolveGetters(test.env, remote.process.env)) assert.strictEqual(test.execPath, remote.process.helperExecPath) assert.strictEqual(test.resourcesPath, remote.process.resourcesPath) assert.strictEqual(test.sandboxed, true) diff --git a/spec/assert-helpers.js b/spec/assert-helpers.js index 10c66bce6..fae8f45b6 100644 --- a/spec/assert-helpers.js +++ b/spec/assert-helpers.js @@ -1,7 +1,7 @@ -function resolverGetters (...args) { +function resolveGetters (...args) { return args.map(o => JSON.parse(JSON.stringify(o))) } module.exports = { - resolverGetters + resolveGetters }