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", () => {
181
181
context ( "showSpecsStatus" , ( ) => {
182
182
const showSpecsStatus = syncSpecsLogs . __get__ ( "showSpecsStatus" ) ;
183
183
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' , ( ) => {
185
185
let data = JSON . stringify ( [ "created" ] )
186
186
var printInitialLog = sandbox . stub ( ) ;
187
187
syncSpecsLogs . __set__ ( 'printInitialLog' , printInitialLog ) ;
188
188
189
189
showSpecsStatus ( data ) ;
190
190
191
- expect ( printInitialLog . calledOnce ) . to . be . true ;
191
+ expect ( printInitialLog . calledOnce ) . to . be . false ;
192
192
} ) ;
193
193
194
194
it ( 'should print spec details when spec related data is sent in polling response' , ( ) => {
@@ -202,6 +202,7 @@ describe("syncSpecsLogs", () => {
202
202
203
203
it ( 'should print initial and spec details when spec related data is sent in polling response' , ( ) => {
204
204
let specResult = JSON . stringify ( { "path" : "path" } )
205
+ syncSpecsLogs . __set__ ( 'buildStarted' , false )
205
206
let data = JSON . stringify ( [ "created" , specResult ] )
206
207
var printSpecData = sandbox . stub ( ) ;
207
208
syncSpecsLogs . __set__ ( 'printSpecData' , printSpecData ) ;
You can’t perform that action at this time.
0 commit comments