refactor: s/resolverGetters/resolveGetters
This commit is contained in:
Родитель
5c8c31c93d
Коммит
21aa28d60f
|
@ -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)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function resolverGetters (...args) {
|
||||
function resolveGetters (...args) {
|
||||
return args.map(o => JSON.parse(JSON.stringify(o)))
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
resolverGetters
|
||||
resolveGetters
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче