diff --git a/package.json b/package.json index 0e496b7..9f05a1b 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "node_modules" ], "setupTestFrameworkScriptFile": "/jest/setup.js", + "snapshotSerializers": ["enzyme-to-json/serializer"], "testPathIgnorePatterns": [ "node_modules", ".cache" diff --git a/src/components/Footer/__snapshots__/test.js.snap b/src/components/Footer/__snapshots__/test.js.snap index 70d1a8c..78580f3 100644 --- a/src/components/Footer/__snapshots__/test.js.snap +++ b/src/components/Footer/__snapshots__/test.js.snap @@ -1,484 +1,42 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Footer rendering 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): `; diff --git a/src/components/Header/__snapshots__/test.js.snap b/src/components/Header/__snapshots__/test.js.snap index 15475cf..b53d451 100644 --- a/src/components/Header/__snapshots__/test.js.snap +++ b/src/components/Header/__snapshots__/test.js.snap @@ -1,1061 +1,93 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Header rendering 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__):
, - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -

- - Regexper - -

, - , - ], - "className": "header", - "data-banner": "testing", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - Regexper - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": "Regexper", - "to": "/", - }, - "ref": null, - "rendered": "Regexper", - "type": [MockFunction], - }, - "type": "h1", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -
  • - - - - Source on GitLab - - -
  • , -
  • - - - Privacy Policy - - -
  • , -
  • - -
  • , - ], - "className": "list", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - - - Source on GitLab - - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , - - Source on GitLab - , - ], - "href": "https://gitlab.com/javallone/regexper-static", - "rel": "external noopener noreferrer", - "target": "_blank", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "color": "currentColor", - "size": "24", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "Source on GitLab", - }, - "ref": null, - "rendered": "Source on GitLab", - "type": [Function], - }, - ], - "type": "a", - }, - "type": "li", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - - Privacy Policy - - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": - Privacy Policy - , - "to": "/privacy", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "Privacy Policy", - }, - "ref": null, - "rendered": "Privacy Policy", - "type": [Function], - }, - "type": [MockFunction], - }, - "type": "li", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object {}, - "ref": null, - "rendered": null, - "type": [Function], - }, - "type": "li", - }, - ], - "type": "ul", - }, - ], - "type": "header", - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -

    - - Regexper - -

    , - , - ], - "className": "header", - "data-banner": "testing", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - Regexper - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": "Regexper", - "to": "/", - }, - "ref": null, - "rendered": "Regexper", - "type": [MockFunction], - }, - "type": "h1", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -
  • - - - - Source on GitLab - - -
  • , -
  • - - - Privacy Policy - - -
  • , -
  • - -
  • , - ], - "className": "list", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - - - Source on GitLab - - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , - - Source on GitLab - , - ], - "href": "https://gitlab.com/javallone/regexper-static", - "rel": "external noopener noreferrer", - "target": "_blank", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "color": "currentColor", - "size": "24", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "Source on GitLab", - }, - "ref": null, - "rendered": "Source on GitLab", - "type": [Function], - }, - ], - "type": "a", - }, - "type": "li", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - - Privacy Policy - - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": - Privacy Policy - , - "to": "/privacy", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "Privacy Policy", - }, - "ref": null, - "rendered": "Privacy Policy", - "type": [Function], - }, - "type": [MockFunction], - }, - "type": "li", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object {}, - "ref": null, - "rendered": null, - "type": [Function], - }, - "type": "li", - }, - ], - "type": "ul", - }, - ], - "type": "header", - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} +
    +

    + + Regexper + +

    + +
    `; exports[`Header rendering with no banner 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__):
    , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -

    - - Regexper - -

    , - , - ], - "className": "header", - "data-banner": null, - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - Regexper - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": "Regexper", - "to": "/", - }, - "ref": null, - "rendered": "Regexper", - "type": [MockFunction], - }, - "type": "h1", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -
  • - - - - Source on GitLab - - -
  • , -
  • - - - Privacy Policy - - -
  • , -
  • - -
  • , - ], - "className": "list", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - - - Source on GitLab - - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , - - Source on GitLab - , - ], - "href": "https://gitlab.com/javallone/regexper-static", - "rel": "external noopener noreferrer", - "target": "_blank", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "color": "currentColor", - "size": "24", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "Source on GitLab", - }, - "ref": null, - "rendered": "Source on GitLab", - "type": [Function], - }, - ], - "type": "a", - }, - "type": "li", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - - Privacy Policy - - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": - Privacy Policy - , - "to": "/privacy", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "Privacy Policy", - }, - "ref": null, - "rendered": "Privacy Policy", - "type": [Function], - }, - "type": [MockFunction], - }, - "type": "li", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object {}, - "ref": null, - "rendered": null, - "type": [Function], - }, - "type": "li", - }, - ], - "type": "ul", - }, - ], - "type": "header", - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -

    - - Regexper - -

    , - , - ], - "className": "header", - "data-banner": null, - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - Regexper - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": "Regexper", - "to": "/", - }, - "ref": null, - "rendered": "Regexper", - "type": [MockFunction], - }, - "type": "h1", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -
  • - - - - Source on GitLab - - -
  • , -
  • - - - Privacy Policy - - -
  • , -
  • - -
  • , - ], - "className": "list", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - - - Source on GitLab - - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , - - Source on GitLab - , - ], - "href": "https://gitlab.com/javallone/regexper-static", - "rel": "external noopener noreferrer", - "target": "_blank", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "color": "currentColor", - "size": "24", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "Source on GitLab", - }, - "ref": null, - "rendered": "Source on GitLab", - "type": [Function], - }, - ], - "type": "a", - }, - "type": "li", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - - Privacy Policy - - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": - Privacy Policy - , - "to": "/privacy", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "Privacy Policy", - }, - "ref": null, - "rendered": "Privacy Policy", - "type": [Function], - }, - "type": [MockFunction], - }, - "type": "li", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object {}, - "ref": null, - "rendered": null, - "type": [Function], - }, - "type": "li", - }, - ], - "type": "ul", - }, - ], - "type": "header", - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} +
    +

    + + Regexper + +

    + +
    `; diff --git a/src/components/Layout/__snapshots__/test.js.snap b/src/components/Layout/__snapshots__/test.js.snap index 8f79d7a..6d7bfc8 100644 --- a/src/components/Layout/__snapshots__/test.js.snap +++ b/src/components/Layout/__snapshots__/test.js.snap @@ -1,150 +1,15 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Layout rendering 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): + + /> + Example content - , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": Array [ - , - - Example content - , - , - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "banner": "Test Banner", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "Example content", - }, - "ref": null, - "rendered": "Example content", - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "buildId": "test-buildid", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - ], - "type": [Function], - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": Array [ - , - - Example content - , - , - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "banner": "Test Banner", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "Example content", - }, - "ref": null, - "rendered": "Example content", - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "buildId": "test-buildid", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - ], - "type": [Function], - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} + + + `; diff --git a/src/components/LocaleSwitcher/__snapshots__/test.js.snap b/src/components/LocaleSwitcher/__snapshots__/test.js.snap index 9779fe1..5476f36 100644 --- a/src/components/LocaleSwitcher/__snapshots__/test.js.snap +++ b/src/components/LocaleSwitcher/__snapshots__/test.js.snap @@ -1,323 +1,34 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`LocaleSwitcher rendering 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - - Language - , -
    - - -
    , - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "Language", - }, - "ref": null, - "rendered": "Language", - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , - , - ], - "className": "switcher", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , - , - ], - "onChange": [Function], - "value": "en", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": "en", - "nodeType": "host", - "props": Object { - "children": "English", - "value": "en", - }, - "ref": null, - "rendered": "English", - "type": "option", - }, - Object { - "instance": null, - "key": "other", - "nodeType": "host", - "props": Object { - "children": "Other", - "value": "other", - }, - "ref": null, - "rendered": "Other", - "type": "option", - }, - ], - "type": "select", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "color": "currentColor", - "size": "24", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - ], - "type": "div", - }, - ], - "type": "label", - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - - Language - , -
    - - -
    , - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "Language", - }, - "ref": null, - "rendered": "Language", - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , - , - ], - "className": "switcher", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , - , - ], - "onChange": [Function], - "value": "en", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": "en", - "nodeType": "host", - "props": Object { - "children": "English", - "value": "en", - }, - "ref": null, - "rendered": "English", - "type": "option", - }, - Object { - "instance": null, - "key": "other", - "nodeType": "host", - "props": Object { - "children": "Other", - "value": "other", - }, - "ref": null, - "rendered": "Other", - "type": "option", - }, - ], - "type": "select", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "color": "currentColor", - "size": "24", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - ], - "type": "div", - }, - ], - "type": "label", - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} + `; diff --git a/src/components/Message/__snapshots__/test.js.snap b/src/components/Message/__snapshots__/test.js.snap index 7024256..d8397e3 100644 --- a/src/components/Message/__snapshots__/test.js.snap +++ b/src/components/Message/__snapshots__/test.js.snap @@ -1,669 +1,69 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Message rendering 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): +
    +

    + Testing +

    +
    +

    Message content

    - , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -
    -

    - Testing -

    -
    , -
    -

    - Message content -

    -
    , - ], - "className": "message", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - undefined, -

    - Testing -

    , - ], - "className": "header", - }, - "ref": null, - "rendered": Array [ - undefined, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Testing", - }, - "ref": null, - "rendered": "Testing", - "type": "h2", - }, - ], - "type": "div", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children":

    - Message content -

    , - "className": "content", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Message content", - }, - "ref": null, - "rendered": "Message content", - "type": "p", - }, - "type": "div", - }, - ], - "type": "div", - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -
    -

    - Testing -

    -
    , -
    -

    - Message content -

    -
    , - ], - "className": "message", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - undefined, -

    - Testing -

    , - ], - "className": "header", - }, - "ref": null, - "rendered": Array [ - undefined, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Testing", - }, - "ref": null, - "rendered": "Testing", - "type": "h2", - }, - ], - "type": "div", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children":

    - Message content -

    , - "className": "content", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Message content", - }, - "ref": null, - "rendered": "Message content", - "type": "p", - }, - "type": "div", - }, - ], - "type": "div", - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} +
    + `; exports[`Message rendering with icon 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): +
    + +

    + Testing +

    +
    +

    Message content

    - , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -
    - -

    - Testing -

    -
    , -
    -

    - Message content -

    -
    , - ], - "className": "message", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , -

    - Testing -

    , - ], - "className": "header", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object {}, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Testing", - }, - "ref": null, - "rendered": "Testing", - "type": "h2", - }, - ], - "type": "div", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children":

    - Message content -

    , - "className": "content", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Message content", - }, - "ref": null, - "rendered": "Message content", - "type": "p", - }, - "type": "div", - }, - ], - "type": "div", - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -
    - -

    - Testing -

    -
    , -
    -

    - Message content -

    -
    , - ], - "className": "message", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , -

    - Testing -

    , - ], - "className": "header", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object {}, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Testing", - }, - "ref": null, - "rendered": "Testing", - "type": "h2", - }, - ], - "type": "div", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children":

    - Message content -

    , - "className": "content", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Message content", - }, - "ref": null, - "rendered": "Message content", - "type": "p", - }, - "type": "div", - }, - ], - "type": "div", - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} +
    + `; exports[`Message rendering with type 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): +
    + +

    + Testing +

    +
    +

    Message content

    - , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -
    - -

    - Testing -

    -
    , -
    -

    - Message content -

    -
    , - ], - "className": "message error", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , -

    - Testing -

    , - ], - "className": "header", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "color": "currentColor", - "size": "24", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Testing", - }, - "ref": null, - "rendered": "Testing", - "type": "h2", - }, - ], - "type": "div", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children":

    - Message content -

    , - "className": "content", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Message content", - }, - "ref": null, - "rendered": "Message content", - "type": "p", - }, - "type": "div", - }, - ], - "type": "div", - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -
    - -

    - Testing -

    -
    , -
    -

    - Message content -

    -
    , - ], - "className": "message error", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , -

    - Testing -

    , - ], - "className": "header", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "color": "currentColor", - "size": "24", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Testing", - }, - "ref": null, - "rendered": "Testing", - "type": "h2", - }, - ], - "type": "div", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children":

    - Message content -

    , - "className": "content", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Message content", - }, - "ref": null, - "rendered": "Message content", - "type": "p", - }, - "type": "div", - }, - ], - "type": "div", - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} +
    + `; diff --git a/src/components/Metadata/__snapshots__/test.js.snap b/src/components/Metadata/__snapshots__/test.js.snap index c8ea1dc..6b33829 100644 --- a/src/components/Metadata/__snapshots__/test.js.snap +++ b/src/components/Metadata/__snapshots__/test.js.snap @@ -1,171 +1,23 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Metadata rendering 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": - Regexper - , - "defer": true, - "encodeSpecialCharacters": true, - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Regexper", - }, - "ref": null, - "rendered": "Regexper", - "type": "title", - }, - "type": [Function], - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": - Regexper - , - "defer": true, - "encodeSpecialCharacters": true, - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Regexper", - }, - "ref": null, - "rendered": "Regexper", - "type": "title", - }, - "type": [Function], - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} + + + Regexper + + `; exports[`Metadata rendering with a title 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": - Regexper - Testing - , - "defer": true, - "encodeSpecialCharacters": true, - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Regexper - Testing", - }, - "ref": null, - "rendered": "Regexper - Testing", - "type": "title", - }, - "type": [Function], - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": - Regexper - Testing - , - "defer": true, - "encodeSpecialCharacters": true, - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Regexper - Testing", - }, - "ref": null, - "rendered": "Regexper - Testing", - "type": "title", - }, - "type": [Function], - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} + + + Regexper - Testing + + `; diff --git a/src/components/SentryBoundary/__snapshots__/test.js.snap b/src/components/SentryBoundary/__snapshots__/test.js.snap index d4f5f03..e2147d2 100644 --- a/src/components/SentryBoundary/__snapshots__/test.js.snap +++ b/src/components/SentryBoundary/__snapshots__/test.js.snap @@ -1,147 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`SentryBoundary error handling 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): - - , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object {}, - "ref": null, - "rendered": null, - "type": [Function], - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object {}, - "ref": null, - "rendered": null, - "type": [Function], - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} -`; +exports[`SentryBoundary error handling 1`] = ``; -exports[`SentryBoundary error handling 2`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): - - , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object {}, - "ref": null, - "rendered": null, - "type": [Function], - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object {}, - "ref": null, - "rendered": null, - "type": [Function], - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} -`; +exports[`SentryBoundary error handling 2`] = ``; -exports[`SentryBoundary rendering 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): - Example content - , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): "Example content", - Symbol(enzyme.__nodes__): Array [ - "Example content", - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} -`; +exports[`SentryBoundary rendering 1`] = `"Example content"`; diff --git a/src/components/SentryError/__snapshots__/test.js.snap b/src/components/SentryError/__snapshots__/test.js.snap index f05782a..d1a7892 100644 --- a/src/components/SentryError/__snapshots__/test.js.snap +++ b/src/components/SentryError/__snapshots__/test.js.snap @@ -1,193 +1,21 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`SentryError rendering 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children":

    - - This error has been logged. You may also - - fill out a report - - . - -

    , - "heading": "TRANSLATE(An error has occurred)", - "type": "error", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - This error has been logged. You may also - - fill out a report - - . - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": Array [ - "This error has been logged. You may also ", - - fill out a report - , - ".", - ], - }, - "ref": null, - "rendered": Array [ - "This error has been logged. You may also ", - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "fill out a report", - "href": "#error-report", - "onClick": [Function], - }, - "ref": null, - "rendered": "fill out a report", - "type": "a", - }, - ".", - ], - "type": [Function], - }, - "type": "p", - }, - "type": [Function], - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children":

    - - This error has been logged. You may also - - fill out a report - - . - -

    , - "heading": "TRANSLATE(An error has occurred)", - "type": "error", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - This error has been logged. You may also - - fill out a report - - . - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": Array [ - "This error has been logged. You may also ", - - fill out a report - , - ".", - ], - }, - "ref": null, - "rendered": Array [ - "This error has been logged. You may also ", - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "fill out a report", - "href": "#error-report", - "onClick": [Function], - }, - "ref": null, - "rendered": "fill out a report", - "type": "a", - }, - ".", - ], - "type": [Function], - }, - "type": "p", - }, - "type": [Function], - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} + +

    + + This error has been logged. You may also + + fill out a report + + . + +

    +
    `; diff --git a/src/pages/__snapshots__/404.test.js.snap b/src/pages/__snapshots__/404.test.js.snap index 703a3b9..b98d0f0 100644 --- a/src/pages/__snapshots__/404.test.js.snap +++ b/src/pages/__snapshots__/404.test.js.snap @@ -1,189 +1,19 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Error Page rendering 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": Array [ - , - -

    - - The page you have requested could not be found. - -

    -
    , - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "title": "TRANSLATE(Page Not Found)", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children":

    - - The page you have requested could not be found. - -

    , - "heading": "TRANSLATE(404 Page Not Found)", - "type": "error", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - The page you have requested could not be found. - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "The page you have requested could not be found.", - }, - "ref": null, - "rendered": "The page you have requested could not be found.", - "type": [Function], - }, - "type": "p", - }, - "type": [Function], - }, - ], - "type": Symbol(react.fragment), - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": Array [ - , - -

    - - The page you have requested could not be found. - -

    -
    , - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "title": "TRANSLATE(Page Not Found)", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children":

    - - The page you have requested could not be found. - -

    , - "heading": "TRANSLATE(404 Page Not Found)", - "type": "error", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - The page you have requested could not be found. - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "The page you have requested could not be found.", - }, - "ref": null, - "rendered": "The page you have requested could not be found.", - "type": [Function], - }, - "type": "p", - }, - "type": [Function], - }, - ], - "type": Symbol(react.fragment), - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} + + + +

    + + The page you have requested could not be found. + +

    +
    +
    `; diff --git a/src/pages/__snapshots__/index.test.js.snap b/src/pages/__snapshots__/index.test.js.snap index 63de0b6..e56e6c5 100644 --- a/src/pages/__snapshots__/index.test.js.snap +++ b/src/pages/__snapshots__/index.test.js.snap @@ -1,371 +1,31 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Index Page rendering 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": Array [ - , - , -
    - - Hello world - -
    , - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object {}, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": -

    - You need JavaScript to use Regexper. -

    -

    - If you have concerns regarding the use of tracking code on Regexper, please see the - - Privacy Policy - - . -

    -
    , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": Array [ -

    - You need JavaScript to use Regexper. -

    , -

    - If you have concerns regarding the use of tracking code on Regexper, please see the - - Privacy Policy - - . -

    , - ], - "heading": "JavaScript Required", - "type": "error", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "You need JavaScript to use Regexper.", - }, - "ref": null, - "rendered": "You need JavaScript to use Regexper.", - "type": "p", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - "If you have concerns regarding the use of tracking code on Regexper, please see the ", - - Privacy Policy - , - ".", - ], - }, - "ref": null, - "rendered": Array [ - "If you have concerns regarding the use of tracking code on Regexper, please see the ", - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": "Privacy Policy", - "to": "/privacy", - }, - "ref": null, - "rendered": "Privacy Policy", - "type": [MockFunction], - }, - ".", - ], - "type": "p", - }, - ], - "type": [Function], - }, - "type": "noscript", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - Hello world - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "Hello world", - }, - "ref": null, - "rendered": "Hello world", - "type": [Function], - }, - "type": "div", - }, - ], - "type": Symbol(react.fragment), - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": Array [ - , - , -
    - - Hello world - -
    , - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object {}, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": -

    - You need JavaScript to use Regexper. -

    -

    - If you have concerns regarding the use of tracking code on Regexper, please see the - - Privacy Policy - - . -

    -
    , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": Array [ -

    - You need JavaScript to use Regexper. -

    , -

    - If you have concerns regarding the use of tracking code on Regexper, please see the - - Privacy Policy - - . -

    , - ], - "heading": "JavaScript Required", - "type": "error", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "You need JavaScript to use Regexper.", - }, - "ref": null, - "rendered": "You need JavaScript to use Regexper.", - "type": "p", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - "If you have concerns regarding the use of tracking code on Regexper, please see the ", - - Privacy Policy - , - ".", - ], - }, - "ref": null, - "rendered": Array [ - "If you have concerns regarding the use of tracking code on Regexper, please see the ", - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": "Privacy Policy", - "to": "/privacy", - }, - "ref": null, - "rendered": "Privacy Policy", - "type": [MockFunction], - }, - ".", - ], - "type": "p", - }, - ], - "type": [Function], - }, - "type": "noscript", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": - Hello world - , - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": "Hello world", - }, - "ref": null, - "rendered": "Hello world", - "type": [Function], - }, - "type": "div", - }, - ], - "type": Symbol(react.fragment), - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} + + + +
    + + Hello world + +
    +
    `; diff --git a/src/pages/__snapshots__/privacy.test.js.snap b/src/pages/__snapshots__/privacy.test.js.snap index 69d0cfb..bfaaddf 100644 --- a/src/pages/__snapshots__/privacy.test.js.snap +++ b/src/pages/__snapshots__/privacy.test.js.snap @@ -1,799 +1,60 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Privacy Page rendering 1`] = ` -ShallowWrapper { - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateError": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": Array [ - , - + + + +

    + Regexper and the tools used to create it are all open source. If you are concerned that the JavaScript being delivered is in any way malicious, please inspect the source in the + - -

    - Regexper and the tools used to create it are all open source. If you are concerned that the JavaScript being delivered is in any way malicious, please inspect the source in the - - GitLab repository - - . -

    -

    - There are two data collection tools integrated in the app. These tools are not used to collect personal information: -

    -
      -
    • - - Google Analytics - - is used to track browser usage data and application performance. It is configured to anonymize the client IP address. -
    • -
    • - - Sentry.io - - is a tool used to capture and report client-side JavaScript errors. It is configured to not store the client IP address. -
    • -
    -

    - Regexper honors the browser - - “Do Not Track” - - setting and will not enable these data collection tools if that setting is enabled. Also, most popular ad blockers will prevent these tools from sending any tracking data. Disabling or blocking these data collection tools will - - not - - impact the performance of this app. The information collected by these tools is used to monitor application performance, determine browser support, and collect error reports. -

    -

    - Regexper is not supported by ad revenue or sales of any kind. -

    -
    -
    , - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "title": "TRANSLATE(Privacy Policy)", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": -

    - Regexper and the tools used to create it are all open source. If you are concerned that the JavaScript being delivered is in any way malicious, please inspect the source in the - - GitLab repository - - . -

    -

    - There are two data collection tools integrated in the app. These tools are not used to collect personal information: -

    -
      -
    • - - Google Analytics - - is used to track browser usage data and application performance. It is configured to anonymize the client IP address. -
    • -
    • - - Sentry.io - - is a tool used to capture and report client-side JavaScript errors. It is configured to not store the client IP address. -
    • -
    -

    - Regexper honors the browser - - “Do Not Track” - - setting and will not enable these data collection tools if that setting is enabled. Also, most popular ad blockers will prevent these tools from sending any tracking data. Disabling or blocking these data collection tools will - - not - - impact the performance of this app. The information collected by these tools is used to monitor application performance, determine browser support, and collect error reports. -

    -

    - Regexper is not supported by ad revenue or sales of any kind. -

    -
    , - "heading": "TRANSLATE(Privacy Policy)", - "type": "info", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": Array [ -

    - Regexper and the tools used to create it are all open source. If you are concerned that the JavaScript being delivered is in any way malicious, please inspect the source in the - - GitLab repository - - . -

    , -

    - There are two data collection tools integrated in the app. These tools are not used to collect personal information: -

    , -
      -
    • - - Google Analytics - - is used to track browser usage data and application performance. It is configured to anonymize the client IP address. -
    • -
    • - - Sentry.io - - is a tool used to capture and report client-side JavaScript errors. It is configured to not store the client IP address. -
    • -
    , -

    - Regexper honors the browser - - “Do Not Track” - - setting and will not enable these data collection tools if that setting is enabled. Also, most popular ad blockers will prevent these tools from sending any tracking data. Disabling or blocking these data collection tools will - - not - - impact the performance of this app. The information collected by these tools is used to monitor application performance, determine browser support, and collect error reports. -

    , -

    - Regexper is not supported by ad revenue or sales of any kind. -

    , - ], - "i18nKey": "Privacy policy copy", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - "Regexper and the tools used to create it are all open source. If you are concerned that the JavaScript being delivered is in any way malicious, please inspect the source in the ", - - GitLab repository - , - ".", - ], - }, - "ref": null, - "rendered": Array [ - "Regexper and the tools used to create it are all open source. If you are concerned that the JavaScript being delivered is in any way malicious, please inspect the source in the ", - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "GitLab repository", - "href": "https://gitlab.com/javallone/regexper-static", - "rel": "external noopener noreferrer", - "target": "_blank", - }, - "ref": null, - "rendered": "GitLab repository", - "type": "a", - }, - ".", - ], - "type": "p", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "There are two data collection tools integrated in the app. These tools are not used to collect personal information:", - }, - "ref": null, - "rendered": "There are two data collection tools integrated in the app. These tools are not used to collect personal information:", - "type": "p", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -
  • - - Google Analytics - - is used to track browser usage data and application performance. It is configured to anonymize the client IP address. -
  • , -
  • - - Sentry.io - - is a tool used to capture and report client-side JavaScript errors. It is configured to not store the client IP address. -
  • , - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - - Google Analytics - , - " is used to track browser usage data and application performance. It is configured to anonymize the client IP address.", - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Google Analytics", - }, - "ref": null, - "rendered": "Google Analytics", - "type": "b", - }, - " is used to track browser usage data and application performance. It is configured to anonymize the client IP address.", - ], - "type": "li", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - - Sentry.io - , - " is a tool used to capture and report client-side JavaScript errors. It is configured to not store the client IP address.", - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Sentry.io", - }, - "ref": null, - "rendered": "Sentry.io", - "type": "b", - }, - " is a tool used to capture and report client-side JavaScript errors. It is configured to not store the client IP address.", - ], - "type": "li", - }, - ], - "type": "ul", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - "Regexper honors the browser ", - - “Do Not Track” - , - " setting and will not enable these data collection tools if that setting is enabled. Also, most popular ad blockers will prevent these tools from sending any tracking data. Disabling or blocking these data collection tools will ", - - not - , - " impact the performance of this app. The information collected by these tools is used to monitor application performance, determine browser support, and collect error reports.", - ], - }, - "ref": null, - "rendered": Array [ - "Regexper honors the browser ", - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "“Do Not Track”", - }, - "ref": null, - "rendered": "“Do Not Track”", - "type": "b", - }, - " setting and will not enable these data collection tools if that setting is enabled. Also, most popular ad blockers will prevent these tools from sending any tracking data. Disabling or blocking these data collection tools will ", - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "not", - }, - "ref": null, - "rendered": "not", - "type": "b", - }, - " impact the performance of this app. The information collected by these tools is used to monitor application performance, determine browser support, and collect error reports.", - ], - "type": "p", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Regexper is not supported by ad revenue or sales of any kind.", - }, - "ref": null, - "rendered": "Regexper is not supported by ad revenue or sales of any kind.", - "type": "p", - }, - ], - "type": [Function], - }, - "type": [Function], - }, - ], - "type": Symbol(react.fragment), - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": Array [ - , - - -

    - Regexper and the tools used to create it are all open source. If you are concerned that the JavaScript being delivered is in any way malicious, please inspect the source in the - - GitLab repository - - . -

    -

    - There are two data collection tools integrated in the app. These tools are not used to collect personal information: -

    -
      -
    • - - Google Analytics - - is used to track browser usage data and application performance. It is configured to anonymize the client IP address. -
    • -
    • - - Sentry.io - - is a tool used to capture and report client-side JavaScript errors. It is configured to not store the client IP address. -
    • -
    -

    - Regexper honors the browser - - “Do Not Track” - - setting and will not enable these data collection tools if that setting is enabled. Also, most popular ad blockers will prevent these tools from sending any tracking data. Disabling or blocking these data collection tools will - - not - - impact the performance of this app. The information collected by these tools is used to monitor application performance, determine browser support, and collect error reports. -

    -

    - Regexper is not supported by ad revenue or sales of any kind. -

    -
    -
    , - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "title": "TRANSLATE(Privacy Policy)", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "function", - "props": Object { - "children": -

    - Regexper and the tools used to create it are all open source. If you are concerned that the JavaScript being delivered is in any way malicious, please inspect the source in the - - GitLab repository - - . -

    -

    - There are two data collection tools integrated in the app. These tools are not used to collect personal information: -

    -
      -
    • - - Google Analytics - - is used to track browser usage data and application performance. It is configured to anonymize the client IP address. -
    • -
    • - - Sentry.io - - is a tool used to capture and report client-side JavaScript errors. It is configured to not store the client IP address. -
    • -
    -

    - Regexper honors the browser - - “Do Not Track” - - setting and will not enable these data collection tools if that setting is enabled. Also, most popular ad blockers will prevent these tools from sending any tracking data. Disabling or blocking these data collection tools will - - not - - impact the performance of this app. The information collected by these tools is used to monitor application performance, determine browser support, and collect error reports. -

    -

    - Regexper is not supported by ad revenue or sales of any kind. -

    -
    , - "heading": "TRANSLATE(Privacy Policy)", - "type": "info", - }, - "ref": null, - "rendered": Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": Array [ -

    - Regexper and the tools used to create it are all open source. If you are concerned that the JavaScript being delivered is in any way malicious, please inspect the source in the - - GitLab repository - - . -

    , -

    - There are two data collection tools integrated in the app. These tools are not used to collect personal information: -

    , -
      -
    • - - Google Analytics - - is used to track browser usage data and application performance. It is configured to anonymize the client IP address. -
    • -
    • - - Sentry.io - - is a tool used to capture and report client-side JavaScript errors. It is configured to not store the client IP address. -
    • -
    , -

    - Regexper honors the browser - - “Do Not Track” - - setting and will not enable these data collection tools if that setting is enabled. Also, most popular ad blockers will prevent these tools from sending any tracking data. Disabling or blocking these data collection tools will - - not - - impact the performance of this app. The information collected by these tools is used to monitor application performance, determine browser support, and collect error reports. -

    , -

    - Regexper is not supported by ad revenue or sales of any kind. -

    , - ], - "i18nKey": "Privacy policy copy", - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - "Regexper and the tools used to create it are all open source. If you are concerned that the JavaScript being delivered is in any way malicious, please inspect the source in the ", - - GitLab repository - , - ".", - ], - }, - "ref": null, - "rendered": Array [ - "Regexper and the tools used to create it are all open source. If you are concerned that the JavaScript being delivered is in any way malicious, please inspect the source in the ", - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "GitLab repository", - "href": "https://gitlab.com/javallone/regexper-static", - "rel": "external noopener noreferrer", - "target": "_blank", - }, - "ref": null, - "rendered": "GitLab repository", - "type": "a", - }, - ".", - ], - "type": "p", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "There are two data collection tools integrated in the app. These tools are not used to collect personal information:", - }, - "ref": null, - "rendered": "There are two data collection tools integrated in the app. These tools are not used to collect personal information:", - "type": "p", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ -
  • - - Google Analytics - - is used to track browser usage data and application performance. It is configured to anonymize the client IP address. -
  • , -
  • - - Sentry.io - - is a tool used to capture and report client-side JavaScript errors. It is configured to not store the client IP address. -
  • , - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - - Google Analytics - , - " is used to track browser usage data and application performance. It is configured to anonymize the client IP address.", - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Google Analytics", - }, - "ref": null, - "rendered": "Google Analytics", - "type": "b", - }, - " is used to track browser usage data and application performance. It is configured to anonymize the client IP address.", - ], - "type": "li", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - - Sentry.io - , - " is a tool used to capture and report client-side JavaScript errors. It is configured to not store the client IP address.", - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Sentry.io", - }, - "ref": null, - "rendered": "Sentry.io", - "type": "b", - }, - " is a tool used to capture and report client-side JavaScript errors. It is configured to not store the client IP address.", - ], - "type": "li", - }, - ], - "type": "ul", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - "Regexper honors the browser ", - - “Do Not Track” - , - " setting and will not enable these data collection tools if that setting is enabled. Also, most popular ad blockers will prevent these tools from sending any tracking data. Disabling or blocking these data collection tools will ", - - not - , - " impact the performance of this app. The information collected by these tools is used to monitor application performance, determine browser support, and collect error reports.", - ], - }, - "ref": null, - "rendered": Array [ - "Regexper honors the browser ", - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "“Do Not Track”", - }, - "ref": null, - "rendered": "“Do Not Track”", - "type": "b", - }, - " setting and will not enable these data collection tools if that setting is enabled. Also, most popular ad blockers will prevent these tools from sending any tracking data. Disabling or blocking these data collection tools will ", - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "not", - }, - "ref": null, - "rendered": "not", - "type": "b", - }, - " impact the performance of this app. The information collected by these tools is used to monitor application performance, determine browser support, and collect error reports.", - ], - "type": "p", - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": "Regexper is not supported by ad revenue or sales of any kind.", - }, - "ref": null, - "rendered": "Regexper is not supported by ad revenue or sales of any kind.", - "type": "p", - }, - ], - "type": [Function], - }, - "type": [Function], - }, - ], - "type": Symbol(react.fragment), - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - "lifecycles": Object { - "componentDidUpdate": Object { - "onSetState": true, - }, - "getDerivedStateFromProps": true, - "getSnapshotBeforeUpdate": true, - "setState": Object { - "skipsComponentDidUpdateOnNullish": true, - }, - }, - }, - }, - }, -} + GitLab repository + + . +

    +

    + There are two data collection tools integrated in the app. These tools are not used to collect personal information: +

    +
      +
    • + + Google Analytics + + is used to track browser usage data and application performance. It is configured to anonymize the client IP address. +
    • +
    • + + Sentry.io + + is a tool used to capture and report client-side JavaScript errors. It is configured to not store the client IP address. +
    • +
    +

    + Regexper honors the browser + + “Do Not Track” + + setting and will not enable these data collection tools if that setting is enabled. Also, most popular ad blockers will prevent these tools from sending any tracking data. Disabling or blocking these data collection tools will + + not + + impact the performance of this app. The information collected by these tools is used to monitor application performance, determine browser support, and collect error reports. +

    +

    + Regexper is not supported by ad revenue or sales of any kind. +

    + +
    + `;