зеркало из https://github.com/electron/electron.git
test: remove unused spec/expect-helpers (#35055)
This commit is contained in:
Родитель
dd68fae081
Коммит
aa40652456
|
@ -7,7 +7,6 @@ const url = require('url');
|
|||
const ChildProcess = require('child_process');
|
||||
const { ipcRenderer } = require('electron');
|
||||
const { emittedOnce, waitForEvent } = require('./events-helpers');
|
||||
const { resolveGetters } = require('./expect-helpers');
|
||||
const { ifit, ifdescribe, delay } = require('./spec-helpers');
|
||||
const features = process._linkedBinding('electron_common_features');
|
||||
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
function resolveSingleObjectGetters (object) {
|
||||
if (object && typeof object === 'object') {
|
||||
const newObject = {};
|
||||
for (const key in object) { // eslint-disable-line guard-for-in
|
||||
newObject[key] = resolveGetters(object[key])[0];
|
||||
}
|
||||
return newObject;
|
||||
}
|
||||
return object;
|
||||
}
|
||||
|
||||
function resolveGetters (...args) {
|
||||
return args.map(resolveSingleObjectGetters);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
resolveGetters
|
||||
};
|
Загрузка…
Ссылка в новой задаче