Skip to content

Commit a4cfa78

Browse files
committed
fix: rebased to latest main and fixed conflicts
1 parent 1999653 commit a4cfa78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/chain.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const initMockPushProcessors = (sinon) => {
2828
writePack: sinon.stub(),
2929
preReceive: sinon.stub(),
3030
getDiff: sinon.stub(),
31+
gitleaks: sinon.stub(),
3132
clearBareClone: sinon.stub(),
3233
scanDiff: sinon.stub(),
3334
blockForAuth: sinon.stub(),
@@ -43,6 +44,7 @@ const initMockPushProcessors = (sinon) => {
4344
mockPushProcessors.writePack.displayName = 'writePack';
4445
mockPushProcessors.preReceive.displayName = 'preReceive';
4546
mockPushProcessors.getDiff.displayName = 'getDiff';
47+
mockPushProcessors.gitleaks.displayName = 'gitleaks';
4648
mockPushProcessors.clearBareClone.displayName = 'clearBareClone';
4749
mockPushProcessors.scanDiff.displayName = 'scanDiff';
4850
mockPushProcessors.blockForAuth.displayName = 'blockForAuth';
@@ -69,7 +71,7 @@ describe('proxy chain', function () {
6971
// Create a new sandbox for each test
7072
sandboxSinon = sinon.createSandbox();
7173
// Initialize the mock push processors
72-
mockPushProcessors = initMockPushProcessors();
74+
mockPushProcessors = initMockPushProcessors(sandboxSinon);
7375

7476
// Re-import the processors module after clearing the cache
7577
processors = await import('../src/proxy/processors');

0 commit comments

Comments
 (0)