@@ -30,6 +30,7 @@ const mockPushProcessors = {
3030 clearBareClone : sinon . stub ( ) ,
3131 scanDiff : sinon . stub ( ) ,
3232 blockForAuth : sinon . stub ( ) ,
33+ getMissingData : sinon . stub ( ) ,
3334} ;
3435mockPushProcessors . parsePush . displayName = 'parsePush' ;
3536mockPushProcessors . audit . displayName = 'audit' ;
@@ -45,7 +46,7 @@ mockPushProcessors.getDiff.displayName = 'getDiff';
4546mockPushProcessors . clearBareClone . displayName = 'clearBareClone' ;
4647mockPushProcessors . scanDiff . displayName = 'scanDiff' ;
4748mockPushProcessors . blockForAuth . displayName = 'blockForAuth' ;
48-
49+ mockPushProcessors . getMissingData . displayName = 'getMissingData' ;
4950const mockPreProcessors = {
5051 parseAction : sinon . stub ( ) ,
5152} ;
@@ -182,6 +183,7 @@ describe('proxy chain', function () {
182183 mockPushProcessors . clearBareClone . resolves ( continuingAction ) ;
183184 mockPushProcessors . scanDiff . resolves ( continuingAction ) ;
184185 mockPushProcessors . blockForAuth . resolves ( continuingAction ) ;
186+ mockPushProcessors . getMissingData . resolves ( continuingAction ) ;
185187
186188 const result = await chain . executeChain ( req ) ;
187189
@@ -200,6 +202,7 @@ describe('proxy chain', function () {
200202 expect ( mockPushProcessors . scanDiff . called ) . to . be . true ;
201203 expect ( mockPushProcessors . blockForAuth . called ) . to . be . true ;
202204 expect ( mockPushProcessors . audit . called ) . to . be . true ;
205+ expect ( mockPushProcessors . getMissingData . called ) . to . be . true ;
203206
204207 expect ( result . type ) . to . equal ( 'push' ) ;
205208 expect ( result . allowPush ) . to . be . false ;
@@ -279,7 +282,7 @@ describe('proxy chain', function () {
279282 mockPushProcessors . clearBareClone . resolves ( action ) ;
280283 mockPushProcessors . scanDiff . resolves ( action ) ;
281284 mockPushProcessors . blockForAuth . resolves ( action ) ;
282-
285+ mockPushProcessors . getMissingData . resolves ( action ) ;
283286 const dbStub = sinon . stub ( db , 'authorise' ) . resolves ( true ) ;
284287
285288 const result = await chain . executeChain ( req ) ;
@@ -325,6 +328,7 @@ describe('proxy chain', function () {
325328 mockPushProcessors . clearBareClone . resolves ( action ) ;
326329 mockPushProcessors . scanDiff . resolves ( action ) ;
327330 mockPushProcessors . blockForAuth . resolves ( action ) ;
331+ mockPushProcessors . getMissingData . resolves ( action ) ;
328332
329333 const dbStub = sinon . stub ( db , 'reject' ) . resolves ( true ) ;
330334
@@ -371,6 +375,7 @@ describe('proxy chain', function () {
371375 mockPushProcessors . clearBareClone . resolves ( action ) ;
372376 mockPushProcessors . scanDiff . resolves ( action ) ;
373377 mockPushProcessors . blockForAuth . resolves ( action ) ;
378+ mockPushProcessors . getMissingData . resolves ( action ) ;
374379
375380 const error = new Error ( 'Database error' ) ;
376381
@@ -416,6 +421,7 @@ describe('proxy chain', function () {
416421 mockPushProcessors . clearBareClone . resolves ( action ) ;
417422 mockPushProcessors . scanDiff . resolves ( action ) ;
418423 mockPushProcessors . blockForAuth . resolves ( action ) ;
424+ mockPushProcessors . getMissingData . resolves ( action ) ;
419425
420426 const error = new Error ( 'Database error' ) ;
421427
0 commit comments