Skip to content

Commit 41fdcc8

Browse files
e2l3nVioletaDimova
authored andcommitted
Change test injector constructor.
1 parent f112420 commit 41fdcc8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

test/project-service.ts

+9-3
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ function createInjectorForPodsTest() {
233233
projectName: "__PROJECT_NAME__",
234234
platformsDir: ""
235235
});
236-
testInjector.register("projectDataService", {});
237236
testInjector.register("iOSEmulatorServices", {});
238237
testInjector.register("config", {
239238
"USE_POD_SANDBOX": true
@@ -244,8 +243,15 @@ function createInjectorForPodsTest() {
244243
testInjector.register("npmInstallationManager", NpmInstallationManager);
245244
testInjector.register("iOSProjectService", IOSProjectService);
246245
testInjector.register("projectService", ProjectServiceLib.ProjectService);
247-
testInjector.register("projectTemplatesService", stubs.ProjectTemplatesService);
248-
testInjector.register("projectNameValidator", mockProjectNameValidator);
246+
testInjector.register("pluginsService", {
247+
getAllInstalledPlugins: () => {
248+
return (() => {
249+
return <any>[];
250+
}).future<IPluginData[]>()();
251+
}
252+
});
253+
testInjector.register("fs", FileSystem);
254+
testInjector.register("projectDataService", ProjectDataServiceLib.ProjectDataService);
249255
testInjector.register("options", Options);
250256
testInjector.register("hostInfo", HostInfo);
251257
testInjector.register("childProcess", ChildProcess);

0 commit comments

Comments
 (0)