File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
test/unit/bin/helpers/sync Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -181,14 +181,14 @@ describe("syncSpecsLogs", () => {
181181 context ( "showSpecsStatus" , ( ) => {
182182 const showSpecsStatus = syncSpecsLogs . __get__ ( "showSpecsStatus" ) ;
183183
184- it ( 'should print initial log for running specs when it is the 1st polling response' , ( ) => {
184+ it ( 'should not print initial log for running specs when it is the 1st polling response' , ( ) => {
185185 let data = JSON . stringify ( [ "created" ] )
186186 var printInitialLog = sandbox . stub ( ) ;
187187 syncSpecsLogs . __set__ ( 'printInitialLog' , printInitialLog ) ;
188188
189189 showSpecsStatus ( data ) ;
190190
191- expect ( printInitialLog . calledOnce ) . to . be . true ;
191+ expect ( printInitialLog . calledOnce ) . to . be . false ;
192192 } ) ;
193193
194194 it ( 'should print spec details when spec related data is sent in polling response' , ( ) => {
@@ -202,6 +202,7 @@ describe("syncSpecsLogs", () => {
202202
203203 it ( 'should print initial and spec details when spec related data is sent in polling response' , ( ) => {
204204 let specResult = JSON . stringify ( { "path" : "path" } )
205+ syncSpecsLogs . __set__ ( 'buildStarted' , false )
205206 let data = JSON . stringify ( [ "created" , specResult ] )
206207 var printSpecData = sandbox . stub ( ) ;
207208 syncSpecsLogs . __set__ ( 'printSpecData' , printSpecData ) ;
You can’t perform that action at this time.
0 commit comments