@tramvai/test-mocks 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.es.js +6 -0
- package/lib/index.js +6 -0
- package/package.json +7 -7
package/lib/index.es.js
CHANGED
|
@@ -128,6 +128,12 @@ const createMockRouter = ({ currentRoute = { name: 'root', path: '/' }, currentU
|
|
|
128
128
|
getCurrentUrl() {
|
|
129
129
|
return url;
|
|
130
130
|
}
|
|
131
|
+
getLastRoute() {
|
|
132
|
+
return route;
|
|
133
|
+
}
|
|
134
|
+
getLastUrl() {
|
|
135
|
+
return url;
|
|
136
|
+
}
|
|
131
137
|
resolveRoute() {
|
|
132
138
|
return route;
|
|
133
139
|
}
|
package/lib/index.js
CHANGED
|
@@ -138,6 +138,12 @@ const createMockRouter = ({ currentRoute = { name: 'root', path: '/' }, currentU
|
|
|
138
138
|
getCurrentUrl() {
|
|
139
139
|
return url;
|
|
140
140
|
}
|
|
141
|
+
getLastRoute() {
|
|
142
|
+
return route;
|
|
143
|
+
}
|
|
144
|
+
getLastUrl() {
|
|
145
|
+
return url;
|
|
146
|
+
}
|
|
141
147
|
resolveRoute() {
|
|
142
148
|
return route;
|
|
143
149
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/test-mocks",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"build-for-publish": "true"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tramvai/core": "2.
|
|
21
|
+
"@tramvai/core": "2.4.0",
|
|
22
22
|
"@tinkoff/pubsub": "0.4.25",
|
|
23
|
-
"@tinkoff/router": "0.1.
|
|
23
|
+
"@tinkoff/router": "0.1.80",
|
|
24
24
|
"@tinkoff/url": "0.7.39",
|
|
25
|
-
"@tramvai/module-cookie": "2.
|
|
26
|
-
"@tramvai/module-common": "2.
|
|
27
|
-
"@tramvai/state": "2.
|
|
28
|
-
"@tramvai/tokens-common": "2.
|
|
25
|
+
"@tramvai/module-cookie": "2.4.0",
|
|
26
|
+
"@tramvai/module-common": "2.4.0",
|
|
27
|
+
"@tramvai/state": "2.4.0",
|
|
28
|
+
"@tramvai/tokens-common": "2.4.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@tinkoff/dippy": "0.7.43",
|