@sprucelabs/spruce-test-fixtures 62.4.42 → 62.4.44
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Locale } from '@sprucelabs/calendar-utils';
|
2
|
-
import { ControllerOptions, Scope, SkillViewController, SpyDevice, ViewControllerId, ViewController, ViewControllerConstructor, ViewControllerPluginOptions, ViewControllerPlugin, AppControllerId } from '@sprucelabs/heartwood-view-controllers';
|
2
|
+
import { ControllerOptions, Scope, SkillViewController, SpyDevice, ViewControllerId, ViewController, ViewControllerConstructor, ViewControllerPluginOptions, ViewControllerPlugin, AppControllerId, AppControllerConstructor } from '@sprucelabs/heartwood-view-controllers';
|
3
3
|
import { MercuryClient } from '@sprucelabs/mercury-client';
|
4
4
|
import { SpruceSchemas } from '@sprucelabs/spruce-core-schemas';
|
5
5
|
import { ClientProxyDecorator } from '../..';
|
@@ -54,6 +54,7 @@ export default class ViewFixture {
|
|
54
54
|
getDevice(): SpyDevice;
|
55
55
|
Controller<N extends ViewControllerId>(name: N, options: ControllerOptions<N>): import("@sprucelabs/heartwood-view-controllers").ViewControllerMap[N];
|
56
56
|
setController<Vc extends ViewController<any>>(name: ViewControllerId, Class: ViewControllerConstructor<Vc>): void;
|
57
|
+
setAppController(App: AppControllerConstructor): void;
|
57
58
|
setClient(client: MercuryClient): void;
|
58
59
|
static beforeAll(): Promise<void>;
|
59
60
|
static beforeEach(): Promise<void>;
|
@@ -62,7 +63,9 @@ export default class ViewFixture {
|
|
62
63
|
load<Svc extends SkillViewController = SkillViewController>(vc: Pick<Svc, 'load' | 'getScope'>, args?: ArgsFromSvc<Svc>): Promise<void>;
|
63
64
|
getThemes(): import("../FakeThemeManager").default;
|
64
65
|
hasApp(namespace: string): boolean;
|
65
|
-
App(namespace:
|
66
|
+
App<Id extends AppControllerId>(namespace: Id): import("@sprucelabs/heartwood-view-controllers").AppControllerMap[Id] & {
|
67
|
+
id: Id;
|
68
|
+
};
|
66
69
|
private assertScopeRequirementsMet;
|
67
70
|
setScope(scope: Scope): void;
|
68
71
|
getScope(): SpyScope;
|
@@ -159,6 +159,9 @@ class ViewFixture {
|
|
159
159
|
setController(name, Class) {
|
160
160
|
this.getFactory().setController(name, Class);
|
161
161
|
}
|
162
|
+
setAppController(App) {
|
163
|
+
this.getFactory().setAppController(App);
|
164
|
+
}
|
162
165
|
setClient(client) {
|
163
166
|
ViewFixture.viewClient = client;
|
164
167
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Locale } from '@sprucelabs/calendar-utils';
|
2
|
-
import { ControllerOptions, Scope, SkillViewController, SpyDevice, ViewControllerId, ViewController, ViewControllerConstructor, ViewControllerPluginOptions, ViewControllerPlugin, AppControllerId } from '@sprucelabs/heartwood-view-controllers';
|
2
|
+
import { ControllerOptions, Scope, SkillViewController, SpyDevice, ViewControllerId, ViewController, ViewControllerConstructor, ViewControllerPluginOptions, ViewControllerPlugin, AppControllerId, AppControllerConstructor } from '@sprucelabs/heartwood-view-controllers';
|
3
3
|
import { MercuryClient } from '@sprucelabs/mercury-client';
|
4
4
|
import { SpruceSchemas } from '@sprucelabs/spruce-core-schemas';
|
5
5
|
import { ClientProxyDecorator } from '../..';
|
@@ -54,6 +54,7 @@ export default class ViewFixture {
|
|
54
54
|
getDevice(): SpyDevice;
|
55
55
|
Controller<N extends ViewControllerId>(name: N, options: ControllerOptions<N>): import("@sprucelabs/heartwood-view-controllers").ViewControllerMap[N];
|
56
56
|
setController<Vc extends ViewController<any>>(name: ViewControllerId, Class: ViewControllerConstructor<Vc>): void;
|
57
|
+
setAppController(App: AppControllerConstructor): void;
|
57
58
|
setClient(client: MercuryClient): void;
|
58
59
|
static beforeAll(): Promise<void>;
|
59
60
|
static beforeEach(): Promise<void>;
|
@@ -62,7 +63,9 @@ export default class ViewFixture {
|
|
62
63
|
load<Svc extends SkillViewController = SkillViewController>(vc: Pick<Svc, 'load' | 'getScope'>, args?: ArgsFromSvc<Svc>): Promise<void>;
|
63
64
|
getThemes(): import("../FakeThemeManager").default;
|
64
65
|
hasApp(namespace: string): boolean;
|
65
|
-
App(namespace:
|
66
|
+
App<Id extends AppControllerId>(namespace: Id): import("@sprucelabs/heartwood-view-controllers").AppControllerMap[Id] & {
|
67
|
+
id: Id;
|
68
|
+
};
|
66
69
|
private assertScopeRequirementsMet;
|
67
70
|
setScope(scope: Scope): void;
|
68
71
|
getScope(): SpyScope;
|
@@ -159,6 +159,9 @@ class ViewFixture {
|
|
159
159
|
setController(name, Class) {
|
160
160
|
this.getFactory().setController(name, Class);
|
161
161
|
}
|
162
|
+
setAppController(App) {
|
163
|
+
this.getFactory().setAppController(App);
|
164
|
+
}
|
162
165
|
setClient(client) {
|
163
166
|
ViewFixture.viewClient = client;
|
164
167
|
}
|
package/package.json
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
"@sprucelabs/spruce-test-fixtures"
|
14
14
|
]
|
15
15
|
},
|
16
|
-
"version": "62.4.
|
16
|
+
"version": "62.4.44",
|
17
17
|
"files": [
|
18
18
|
"build/**/*",
|
19
19
|
"!build/__tests__",
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"@sprucelabs/spruce-core-schemas": "^40.1.553",
|
72
72
|
"@sprucelabs/spruce-event-utils": "^40.1.329",
|
73
73
|
"@sprucelabs/spruce-permission-utils": "^8.1.37",
|
74
|
-
"@sprucelabs/spruce-skill-booter": "^62.4.
|
74
|
+
"@sprucelabs/spruce-skill-booter": "^62.4.44",
|
75
75
|
"@sprucelabs/spruce-skill-utils": "^31.0.630",
|
76
76
|
"@sprucelabs/test-utils": "^5.1.507",
|
77
77
|
"dotenv": "^16.4.5",
|
@@ -114,5 +114,5 @@
|
|
114
114
|
"^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
|
115
115
|
}
|
116
116
|
},
|
117
|
-
"gitHead": "
|
117
|
+
"gitHead": "de3331bec87f14ee4dd3dd5da41c63c1240e3699"
|
118
118
|
}
|