dortzur/renorm

View on GitHub
src/__snapshots__/utils.spec.js.snap

Summary

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

exports[`utils converts arrays to entity maps 1`] = `
Object {
  "change": -7.08,
  "field4": "",
  "id": "AAPL",
  "lastEarningsReport": "AAPL_QUARTER_3",
  "name": "Apple Inc",
  "percentChange": "-4.10%",
  "price": 734,
  "quarterEarnings": Array [
    "AAPL_QUARTER_1",
    "AAPL_QUARTER_2",
    "AAPL_QUARTER_3",
  ],
}
`;

exports[`utils gets an entity 1`] = `
Object {
  "entity": Object {
    "companyName": "Apple Inc.",
    "financialStatus": "N",
    "id": "COMP_AAPL",
    "marketCategory": "Q",
    "roundLotSize": 100,
    "securityName": "Apple Inc. - Common Stock",
    "stock": "AAPL",
    "testIssue": "N",
  },
  "schema": EntitySchema {
    "_getId": [Function],
    "_idAttribute": "id",
    "_key": "companies",
    "_mergeStrategy": [Function],
    "_processStrategy": [Function],
    "schema": Object {
      "stock": EntitySchema {
        "_getId": [Function],
        "_idAttribute": "id",
        "_key": "stocks",
        "_mergeStrategy": [Function],
        "_processStrategy": [Function],
        "schema": Object {
          "lastEarningsReport": EntitySchema {
            "_getId": [Function],
            "_idAttribute": "reportId",
            "_key": "earnings",
            "_mergeStrategy": [Function],
            "_processStrategy": [Function],
            "schema": Object {},
          },
          "quarterEarnings": Array [
            EntitySchema {
              "_getId": [Function],
              "_idAttribute": "reportId",
              "_key": "earnings",
              "_mergeStrategy": [Function],
              "_processStrategy": [Function],
              "schema": Object {},
            },
          ],
        },
      },
    },
  },
}
`;