@@ -30,6 +30,7 @@ const mockPushProcessors = {
30
30
clearBareClone : sinon . stub ( ) ,
31
31
scanDiff : sinon . stub ( ) ,
32
32
blockForAuth : sinon . stub ( ) ,
33
+ getMissingData : sinon . stub ( ) ,
33
34
} ;
34
35
mockPushProcessors . parsePush . displayName = 'parsePush' ;
35
36
mockPushProcessors . audit . displayName = 'audit' ;
@@ -45,7 +46,7 @@ mockPushProcessors.getDiff.displayName = 'getDiff';
45
46
mockPushProcessors . clearBareClone . displayName = 'clearBareClone' ;
46
47
mockPushProcessors . scanDiff . displayName = 'scanDiff' ;
47
48
mockPushProcessors . blockForAuth . displayName = 'blockForAuth' ;
48
-
49
+ mockPushProcessors . getMissingData . displayName = 'getMissingData' ;
49
50
const mockPreProcessors = {
50
51
parseAction : sinon . stub ( ) ,
51
52
} ;
@@ -182,6 +183,7 @@ describe('proxy chain', function () {
182
183
mockPushProcessors . clearBareClone . resolves ( continuingAction ) ;
183
184
mockPushProcessors . scanDiff . resolves ( continuingAction ) ;
184
185
mockPushProcessors . blockForAuth . resolves ( continuingAction ) ;
186
+ mockPushProcessors . getMissingData . resolves ( continuingAction ) ;
185
187
186
188
const result = await chain . executeChain ( req ) ;
187
189
@@ -200,6 +202,7 @@ describe('proxy chain', function () {
200
202
expect ( mockPushProcessors . scanDiff . called ) . to . be . true ;
201
203
expect ( mockPushProcessors . blockForAuth . called ) . to . be . true ;
202
204
expect ( mockPushProcessors . audit . called ) . to . be . true ;
205
+ expect ( mockPushProcessors . getMissingData . called ) . to . be . true ;
203
206
204
207
expect ( result . type ) . to . equal ( 'push' ) ;
205
208
expect ( result . allowPush ) . to . be . false ;
@@ -279,7 +282,7 @@ describe('proxy chain', function () {
279
282
mockPushProcessors . clearBareClone . resolves ( action ) ;
280
283
mockPushProcessors . scanDiff . resolves ( action ) ;
281
284
mockPushProcessors . blockForAuth . resolves ( action ) ;
282
-
285
+ mockPushProcessors . getMissingData . resolves ( action ) ;
283
286
const dbStub = sinon . stub ( db , 'authorise' ) . resolves ( true ) ;
284
287
285
288
const result = await chain . executeChain ( req ) ;
@@ -325,6 +328,7 @@ describe('proxy chain', function () {
325
328
mockPushProcessors . clearBareClone . resolves ( action ) ;
326
329
mockPushProcessors . scanDiff . resolves ( action ) ;
327
330
mockPushProcessors . blockForAuth . resolves ( action ) ;
331
+ mockPushProcessors . getMissingData . resolves ( action ) ;
328
332
329
333
const dbStub = sinon . stub ( db , 'reject' ) . resolves ( true ) ;
330
334
@@ -371,6 +375,7 @@ describe('proxy chain', function () {
371
375
mockPushProcessors . clearBareClone . resolves ( action ) ;
372
376
mockPushProcessors . scanDiff . resolves ( action ) ;
373
377
mockPushProcessors . blockForAuth . resolves ( action ) ;
378
+ mockPushProcessors . getMissingData . resolves ( action ) ;
374
379
375
380
const error = new Error ( 'Database error' ) ;
376
381
@@ -416,6 +421,7 @@ describe('proxy chain', function () {
416
421
mockPushProcessors . clearBareClone . resolves ( action ) ;
417
422
mockPushProcessors . scanDiff . resolves ( action ) ;
418
423
mockPushProcessors . blockForAuth . resolves ( action ) ;
424
+ mockPushProcessors . getMissingData . resolves ( action ) ;
419
425
420
426
const error = new Error ( 'Database error' ) ;
421
427
0 commit comments