@@ -25,6 +25,7 @@ function createTestInjector(
25
25
) : IInjector {
26
26
const testInjector : IInjector = new yok . Yok ( ) ;
27
27
testInjector . register ( "logger" , stubs . LoggerStub ) ;
28
+ testInjector . register ( "workflowService" , stubs . WorkflowServiceStub ) ;
28
29
testInjector . register ( "options" , Options ) ;
29
30
testInjector . register ( 'fs' , stubs . FileSystemStub ) ;
30
31
testInjector . register ( "analyticsService" , {
@@ -49,10 +50,10 @@ function createTestInjector(
49
50
} ) ;
50
51
testInjector . register ( "pluginVariablesService" , { } ) ;
51
52
testInjector . register ( "platformService" , {
52
- getInstalledPlatforms : function ( ) : string [ ] {
53
+ getInstalledPlatforms : function ( ) : string [ ] {
53
54
return installedPlatforms ;
54
55
} ,
55
- getAvailablePlatforms : function ( ) : string [ ] {
56
+ getAvailablePlatforms : function ( ) : string [ ] {
56
57
return availablePlatforms ;
57
58
} ,
58
59
removePlatforms : async ( ) : Promise < void > => undefined ,
@@ -66,9 +67,9 @@ function createTestInjector(
66
67
getPlatformData : ( ) => {
67
68
return {
68
69
platformProjectService : {
69
- validate
70
- }
71
- } ;
70
+ validate
71
+ }
72
+ } ;
72
73
}
73
74
} ) ;
74
75
testInjector . register ( "settingsService" , SettingsService ) ;
@@ -161,7 +162,7 @@ describe("update command method tests", () => {
161
162
const fs = testInjector . resolve ( "fs" ) ;
162
163
const copyFileStub = sandbox . stub ( fs , "copyFile" ) ;
163
164
const updateCommand = testInjector . resolve < UpdateCommand > ( UpdateCommand ) ;
164
- return updateCommand . execute ( [ "3.3.0" ] ) . then ( ( ) => {
165
+ return updateCommand . execute ( [ "3.3.0" ] ) . then ( ( ) => {
165
166
assert . isTrue ( copyFileStub . calledWith ( path . join ( projectFolder , "package.json" ) ) ) ;
166
167
for ( const folder of UpdateCommand . folders ) {
167
168
assert . isTrue ( copyFileStub . calledWith ( path . join ( projectFolder , folder ) ) ) ;
0 commit comments