rofrischmann/elodin

View on GitHub
utils/reason/src/__tests__/__snapshots__/escapeKeywords-test.js.snap

Summary

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

exports[`Escaping keywords should return a capitalized string 1`] = `
Object {
  "body": Array [
    Object {
      "body": Array [
        Object {
          "comments": Array [],
          "type": "Identifier",
          "value": "Primary",
        },
        Object {
          "comments": Array [],
          "type": "Identifier",
          "value": "Secondary_",
        },
      ],
      "comments": Array [],
      "name": "Type_",
      "type": "Variant",
    },
    Object {
      "body": Array [
        Object {
          "comments": Array [],
          "dynamic": true,
          "property": "color",
          "raw": false,
          "type": "Declaration",
          "value": Object {
            "environment": false,
            "type": "Variable",
            "value": "color_",
          },
        },
        Object {
          "comments": Array [],
          "dynamic": true,
          "property": "backgroundColor",
          "raw": false,
          "type": "Declaration",
          "value": Object {
            "environment": false,
            "type": "Variable",
            "value": "bgColor",
          },
        },
        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",
}
`;