spec: fix final node and chromium specs after assert change
This commit is contained in:
parent
91f00a518a
commit
40f0f049a2
3 changed files with 18 additions and 6 deletions
|
@ -1,5 +1,16 @@
|
|||
function resolveSingleObjectGetters (object) {
|
||||
if (object && typeof object === 'object') {
|
||||
const newObject = {}
|
||||
for (const key in object) {
|
||||
newObject[key] = resolveGetters(object[key])[0]
|
||||
}
|
||||
return newObject
|
||||
}
|
||||
return object
|
||||
}
|
||||
|
||||
function resolveGetters (...args) {
|
||||
return args.map(o => JSON.parse(JSON.stringify(o)))
|
||||
return args.map(resolveSingleObjectGetters)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue