Merge "Use HTTPS to resolve dependencies in Maven"
authorIttay Stern <ittay.stern@att.com>
Fri, 28 Feb 2020 03:50:20 +0000 (03:50 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 28 Feb 2020 03:50:20 +0000 (03:50 +0000)
vid-webpack-master/cypress/support/steps/general/compareDeepObjects.step.ts

index 901a9b1..f8a8b0f 100644 (file)
@@ -8,6 +8,9 @@ declare namespace Cypress {
 
 function deepCompare(actual : any, expected : any) {
   if(actual !== null && expected !== null){
+    const actualOriginal = JSON.stringify(actual);
+    const expectedOriginal = JSON.stringify(expected);
+
     let diff : any[] = [];
     Cypress._.mergeWith(actual, expected, function (objectValue, sourceValue, key, object, source) {
       if ( !(_.isEqual(objectValue, sourceValue)) && (Object(objectValue) !== objectValue)) {
@@ -24,7 +27,7 @@ function deepCompare(actual : any, expected : any) {
     if(diff.length > 0){
       console.error("diff", diff);
       cy.log("The object are not equals", diff);
-      expect(actual).equals(expected, `diff: ${diff}, actual:${JSON.stringify(actual)}, expected:${JSON.stringify(expected)}`);
+      expect(actual).equals(expected, `diff: ${diff}, actual:${actualOriginal}, expected:${expectedOriginal}`);
     }
   }
 }