@tramvai/test-mocks 2.2.3 → 2.5.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 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.2.3",
3
+ "version": "2.5.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -18,17 +18,17 @@
18
18
  "build-for-publish": "true"
19
19
  },
20
20
  "dependencies": {
21
- "@tramvai/core": "2.2.3",
21
+ "@tramvai/core": "2.5.0",
22
22
  "@tinkoff/pubsub": "0.4.25",
23
- "@tinkoff/router": "0.1.79",
23
+ "@tinkoff/router": "0.1.80",
24
24
  "@tinkoff/url": "0.7.39",
25
- "@tramvai/module-cookie": "2.2.3",
26
- "@tramvai/module-common": "2.2.3",
27
- "@tramvai/state": "2.2.3",
28
- "@tramvai/tokens-common": "2.2.3"
25
+ "@tramvai/module-cookie": "2.5.0",
26
+ "@tramvai/module-common": "2.5.0",
27
+ "@tramvai/state": "2.5.0",
28
+ "@tramvai/tokens-common": "2.5.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "@tinkoff/dippy": "0.7.43",
31
+ "@tinkoff/dippy": "0.7.44",
32
32
  "@tinkoff/utils": "^2.1.2",
33
33
  "tslib": "^2.0.3"
34
34
  },