Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/router / __tests__ / __snapshots__ / OneRouter.context.test.tsx.snap
Size: Mime:
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`context 
  - should have everything we need available in oneRouter
    when rendering in this updated way
  - even without consumer
  - compat with reference-store
  - also should work without children
   1`] = `
Object {
  "history": Object {
    "action": "POP",
    "block": [Function],
    "canGo": [Function],
    "createHref": [Function],
    "entries": Array [
      Object {
        "hash": "",
        "key": "gyamk3",
        "pathname": "/",
        "search": "",
        "state": undefined,
      },
    ],
    "go": [Function],
    "goBack": [Function],
    "goForward": [Function],
    "index": 0,
    "length": 1,
    "listen": [Function],
    "location": Object {
      "hash": "",
      "key": "gyamk3",
      "pathname": "/",
      "search": "",
      "state": undefined,
    },
    "push": [Function],
    "replace": [Function],
  },
  "location": Object {
    "hash": "",
    "key": "gyamk3",
    "pathname": "/",
    "search": "",
    "state": undefined,
  },
  "match": Object {
    "isExact": true,
    "params": Object {},
    "path": "/",
    "url": "/",
  },
  "staticContext": undefined,
}
`;

exports[`context should be able to consume OneRouter, even without Router 1`] = `Object {}`;

exports[`context should not error if we render <OneRouter> INSIDE of <Router> 1`] = `Array []`;

exports[`context should not error if we render <OneRouter> outside of <Router> 1`] = `Object {}`;