Repository URL to install this package:
|
Version:
6.1.0 ▾
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`oneRouter @todo can use with autofixing data types 1`] = `
Array [
Object {
"label": "one",
"value": 1,
},
Object {
"label": "two",
"value": 2,
},
]
`;
exports[`oneRouter can match route params 1`] = `
Object {
"entries": Object {
"action": "REPLACE",
"block": [Function],
"canGo": [Function],
"createHref": [Function],
"eh": "igloo",
"entries": Array [
Object {
"hash": "",
"key": "mrqr56",
"pathname": "/",
"search": "",
"state": undefined,
},
Object {
"hash": "",
"key": "ce4w40",
"pathname": "/some-url",
"search": "",
"state": undefined,
},
Object {
"hash": "",
"key": "86eb59",
"pathname": "/fallback/igloo",
"search": "",
"state": undefined,
},
],
"go": [Function],
"goBack": [Function],
"goForward": [Function],
"hash": "",
"history": Object {
"action": "REPLACE",
"block": [Function],
"canGo": [Function],
"createHref": [Function],
"entries": Array [
Object {
"hash": "",
"key": "mrqr56",
"pathname": "/",
"search": "",
"state": undefined,
},
Object {
"hash": "",
"key": "ce4w40",
"pathname": "/some-url",
"search": "",
"state": undefined,
},
Object {
"hash": "",
"key": "86eb59",
"pathname": "/fallback/igloo",
"search": "",
"state": undefined,
},
],
"go": [Function],
"goBack": [Function],
"goForward": [Function],
"index": 2,
"length": 3,
"listen": [Function],
"location": Object {
"hash": "",
"key": "86eb59",
"pathname": "/fallback/igloo",
"search": "",
"state": undefined,
},
"push": [Function],
"replace": [Function],
},
"index": 2,
"key": "86eb59",
"length": 3,
"listen": [Function],
"location": Object {
"hash": "",
"key": "86eb59",
"pathname": "/fallback/igloo",
"search": "",
"state": undefined,
},
"pathname": "/fallback/igloo",
"push": [Function],
"replace": [Function],
"route": undefined,
"search": "",
"state": undefined,
},
}
`;