test: remove unused spec/expect-helpers (#35055)
This commit is contained in:
parent
dd68fae081
commit
aa40652456
2 changed files with 0 additions and 19 deletions
|
@ -7,7 +7,6 @@ const url = require('url');
|
||||||
const ChildProcess = require('child_process');
|
const ChildProcess = require('child_process');
|
||||||
const { ipcRenderer } = require('electron');
|
const { ipcRenderer } = require('electron');
|
||||||
const { emittedOnce, waitForEvent } = require('./events-helpers');
|
const { emittedOnce, waitForEvent } = require('./events-helpers');
|
||||||
const { resolveGetters } = require('./expect-helpers');
|
|
||||||
const { ifit, ifdescribe, delay } = require('./spec-helpers');
|
const { ifit, ifdescribe, delay } = require('./spec-helpers');
|
||||||
const features = process._linkedBinding('electron_common_features');
|
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
|
|
||||||
};
|
|
Loading…
Reference in a new issue