rofrischmann/elodin

View on GitHub
core/traverser/src/__tests__/__snapshots__/traverse-test.js.snap

Summary

Maintainability
Test Coverage
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Traversing ast nodes should correctly traverse nodes 1`] = `
Object {
  "body": Array [
    Object {
      "body": Array [
        Object {
          "comments": Array [],
          "dynamic": false,
          "property": "color",
          "raw": false,
          "type": "Declaration",
          "value": Object {
            "type": "Identifier",
            "value": "RED",
          },
        },
        Object {
          "body": Array [
            Object {
              "comments": Array [],
              "dynamic": false,
              "property": "color",
              "raw": false,
              "type": "Declaration",
              "value": Object {
                "type": "Identifier",
                "value": "BLUE",
              },
            },
          ],
          "comments": Array [],
          "operator": "=",
          "property": Object {
            "type": "Identifier",
            "value": "TYPE",
          },
          "type": "Conditional",
          "value": Object {
            "type": "Identifier",
            "value": "PRIMARY",
          },
        },
      ],
      "comments": Array [],
      "name": "Button",
      "type": "Style",
    },
  ],
  "type": "File",
}
`;

exports[`Traversing ast nodes should correctly traverse nodes 2`] = `
Array [
  "red",
  "RED",
  "RED",
  "Primary",
  "PRIMARY",
  "PRIMARY",
  "Type",
  "TYPE",
  "TYPE",
  "blue",
  "BLUE",
  "BLUE",
]
`;