@nestia/e2e
Advanced tools
Comparing version 0.3.3 to 0.3.4
"use strict"; | ||
var __read = (this && this.__read) || function (o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -55,10 +39,6 @@ exports.json_equal_to = void 0; | ||
return function (y) { | ||
return Object.entries(x) | ||
.filter(function (_a) { | ||
var _b = __read(_a, 1), k = _b[0]; | ||
return !exception(k); | ||
}) | ||
.forEach(function (_a) { | ||
var _b = __read(_a, 2), k = _b[0], v = _b[1]; | ||
return iterate("".concat(accessor, ".").concat(k))(v)(y[k]); | ||
return Object.keys(x) | ||
.filter(function (key) { return x[key] !== undefined && !exception(key); }) | ||
.forEach(function (key) { | ||
return iterate("".concat(accessor, ".").concat(key))(x[key])(y[key]); | ||
}); | ||
@@ -65,0 +45,0 @@ }; |
{ | ||
"name": "@nestia/e2e", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "E2E test utilify functions", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -30,5 +30,7 @@ export const json_equal_to = | ||
(y: any): void => | ||
Object.entries(x) | ||
.filter(([k]) => !exception(k)) | ||
.forEach(([k, v]) => iterate(`${accessor}.${k}`)(v)(y[k])); | ||
Object.keys(x) | ||
.filter((key) => x[key] !== undefined && !exception(key)) | ||
.forEach((key) => | ||
iterate(`${accessor}.${key}`)(x[key])(y[key]), | ||
); | ||
@@ -35,0 +37,0 @@ iterate("")(x)(y); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137842
2727