danylokarpenko/backend-project-lvl2

View on GitHub
__tests__/__fixtures__/jsonResult.diff

Summary

Maintainability
Test Coverage
[
  {
    "key": "common",
    "type": "father",
    "children": [
      {
        "key": "setting1",
        "type": "unchanged",
        "oldValue": "Value 1",
        "newValue": "Value 1"
      },
      {
        "key": "setting2",
        "type": "deleted",
        "oldValue": "200"
      },
      {
        "key": "setting3",
        "type": "changed",
        "oldValue": true,
        "newValue": {
          "key": "value"
        }
      },
      {
        "key": "setting6",
        "type": "father",
        "children": [
          {
            "key": "key",
            "type": "unchanged",
            "oldValue": "value",
            "newValue": "value"
          },
          {
            "key": "ops",
            "type": "added",
            "newValue": "vops"
          }
        ]
      },
      {
        "key": "follow",
        "type": "added",
        "newValue": false
      },
      {
        "key": "setting4",
        "type": "added",
        "newValue": "blah blah"
      },
      {
        "key": "setting5",
        "type": "added",
        "newValue": {
          "key5": "value5"
        }
      }
    ]
  },
  {
    "key": "group1",
    "type": "father",
    "children": [
      {
        "key": "baz",
        "type": "changed",
        "oldValue": "bas",
        "newValue": "bars"
      },
      {
        "key": "foo",
        "type": "unchanged",
        "oldValue": "bar",
        "newValue": "bar"
      },
      {
        "key": "nest",
        "type": "changed",
        "oldValue": {
          "key": "value"
        },
        "newValue": "str"
      }
    ]
  },
  {
    "key": "group2",
    "type": "deleted",
    "oldValue": {
      "abc": "12345"
    }
  },
  {
    "key": "group3",
    "type": "added",
    "newValue": {
      "fee": "100500"
    }
  }
]