@@ -34,6 +34,7 @@ test.before(() => {
34
34
35
35
test . beforeEach ( async ( t ) => {
36
36
const sinon = t . context . sinon = sinonGlobal . createSandbox ( ) ;
37
+ t . context . processStdoutWriteStub = sinon . stub ( process . stdout , "write" ) ;
37
38
t . context . processStderrWriteStub = sinon . stub ( process . stderr , "write" ) ;
38
39
t . context . originalArgv = process . argv ;
39
40
process . env . UI5_CLI_TEST_BIN_RUN_MAIN = "false" ; // prevent automatic execution of main function
@@ -148,7 +149,7 @@ test.serial("checkRequirements: logs warning when using pre-release Node.js vers
148
149
} ) ;
149
150
150
151
test . serial ( "invokeLocalInstallation: Invokes local installation when found" , async ( t ) => {
151
- const { processStderrWriteStub } = t . context ;
152
+ const { processStdoutWriteStub } = t . context ;
152
153
153
154
importLocalStub . returns ( { } ) ;
154
155
@@ -158,10 +159,10 @@ test.serial("invokeLocalInstallation: Invokes local installation when found", as
158
159
159
160
t . true ( returnValue ) ;
160
161
161
- t . is ( processStderrWriteStub . callCount , 2 , "Information messages should be provided" ) ;
162
+ t . is ( processStdoutWriteStub . callCount , 2 , "Information messages should be provided" ) ;
162
163
163
- t . deepEqual ( processStderrWriteStub . getCall ( 0 ) . args , [ "INFO: Using local ui5-cli-test installation" ] ) ;
164
- t . deepEqual ( processStderrWriteStub . getCall ( 1 ) . args , [ "\n\n" ] ) ;
164
+ t . deepEqual ( processStdoutWriteStub . getCall ( 0 ) . args , [ "INFO: Using local ui5-cli-test installation" ] ) ;
165
+ t . deepEqual ( processStdoutWriteStub . getCall ( 1 ) . args , [ "\n\n" ] ) ;
165
166
166
167
t . is ( importLocalStub . callCount , 1 , "import-local should be called once" ) ;
167
168
t . is ( importLocalStub . getCall ( 0 ) . args . length , 1 ) ;
0 commit comments