git.fiddlerwoaroof.com
Raw Blame History
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`additional props are passed through 1`] = `
<Link
  action={Object {}}
  className="foo"
  store={
    Object {
      "dispatch": [MockFunction],
      "pathForAction": [MockFunction] {
        "calls": Array [
          Array [
            Object {},
          ],
        ],
        "results": Array [
          Object {
            "type": "return",
            "value": "/my/path",
          },
        ],
      },
    }
  }
>
  <a
    className="foo"
    href="/my/path"
    onClick={[Function]}
    store={
      Object {
        "dispatch": [MockFunction],
        "pathForAction": [MockFunction] {
          "calls": Array [
            Array [
              Object {},
            ],
          ],
          "results": Array [
            Object {
              "type": "return",
              "value": "/my/path",
            },
          ],
        },
      }
    }
  >
    Hello World!
  </a>
</Link>
`;

exports[`renders the url calculated by our internal function 1`] = `
<Link
  action={Object {}}
  store={
    Object {
      "dispatch": [MockFunction],
      "pathForAction": [MockFunction] {
        "calls": Array [
          Array [
            Object {},
          ],
        ],
        "results": Array [
          Object {
            "type": "return",
            "value": "/my/path",
          },
        ],
      },
    }
  }
>
  <a
    href="/my/path"
    onClick={[Function]}
    store={
      Object {
        "dispatch": [MockFunction],
        "pathForAction": [MockFunction] {
          "calls": Array [
            Array [
              Object {},
            ],
          ],
          "results": Array [
            Object {
              "type": "return",
              "value": "/my/path",
            },
          ],
        },
      }
    }
  >
    Hello World!
  </a>
</Link>
`;