Skip to content

Commit ec51f00

Browse files
committed
chore: remove unused declarations
1 parent eb78943 commit ec51f00

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test/preReceive/preReceive.test.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
const { expect } = require('chai');
22
const sinon = require('sinon');
3-
const fs = require('fs');
43
const path = require('path');
5-
const { spawnSync } = require('child_process');
64
const { exec } = require('../../src/proxy/processors/push-action/preReceive');
75

86
describe('Pre-Receive Hook Execution', function () {
@@ -29,7 +27,6 @@ describe('Pre-Receive Hook Execution', function () {
2927
});
3028

3129
it('should execute hook successfully', async () => {
32-
const path = require('path');
3330
const scriptPath = path.resolve(__dirname, 'pre-receive-hooks/always-allow.sh');
3431

3532
const result = await exec(req, action, scriptPath);
@@ -42,7 +39,6 @@ describe('Pre-Receive Hook Execution', function () {
4239
});
4340

4441
it('should fail when hook file does not exist', async () => {
45-
const path = require('path');
4642
const scriptPath = path.resolve(__dirname, 'pre-receive-hooks/missing-hook.sh');
4743

4844
const result = await exec(req, action, scriptPath);
@@ -55,7 +51,6 @@ describe('Pre-Receive Hook Execution', function () {
5551
});
5652

5753
it('should fail when hook execution returns an error', async () => {
58-
const path = require('path');
5954
const scriptPath = path.resolve(__dirname, 'pre-receive-hooks/always-reject.sh');
6055

6156
const result = await exec(req, action, scriptPath);

0 commit comments

Comments
 (0)