Repository URL to install this package:
|
Version:
7.0.0-alpha.1 ▾
|
// 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 {}`;