@@ -28,6 +28,7 @@ const initMockPushProcessors = (sinon) => {
28
28
writePack : sinon . stub ( ) ,
29
29
preReceive : sinon . stub ( ) ,
30
30
getDiff : sinon . stub ( ) ,
31
+ gitleaks : sinon . stub ( ) ,
31
32
clearBareClone : sinon . stub ( ) ,
32
33
scanDiff : sinon . stub ( ) ,
33
34
blockForAuth : sinon . stub ( ) ,
@@ -43,6 +44,7 @@ const initMockPushProcessors = (sinon) => {
43
44
mockPushProcessors . writePack . displayName = 'writePack' ;
44
45
mockPushProcessors . preReceive . displayName = 'preReceive' ;
45
46
mockPushProcessors . getDiff . displayName = 'getDiff' ;
47
+ mockPushProcessors . gitleaks . displayName = 'gitleaks' ;
46
48
mockPushProcessors . clearBareClone . displayName = 'clearBareClone' ;
47
49
mockPushProcessors . scanDiff . displayName = 'scanDiff' ;
48
50
mockPushProcessors . blockForAuth . displayName = 'blockForAuth' ;
@@ -69,7 +71,7 @@ describe('proxy chain', function () {
69
71
// Create a new sandbox for each test
70
72
sandboxSinon = sinon . createSandbox ( ) ;
71
73
// Initialize the mock push processors
72
- mockPushProcessors = initMockPushProcessors ( ) ;
74
+ mockPushProcessors = initMockPushProcessors ( sandboxSinon ) ;
73
75
74
76
// Re-import the processors module after clearing the cache
75
77
processors = await import ( '../src/proxy/processors' ) ;
0 commit comments