Skip to content

Commit 3d32805

Browse files
committed
fix CI
1 parent 65e8617 commit 3d32805

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

scripts/fix-all-controller-tests-to-mock.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ for (const filePath of testFiles) {
2929
// Extract the controller name from the file path
3030
const pathParts = filePath.split('/')
3131
const controllerName = pathParts[pathParts.length - 2] // e.g., ClusterRole
32-
const _controllerFileName = pathParts[pathParts.length - 1].replace('.spec.ts', '.ts') // e.g., ClusterRole.controller.ts
33-
34-
// Extract the service name (e.g., clusterRoleService)
35-
const _serviceName = `${controllerName.charAt(0).toLowerCase() + controllerName.slice(1)}Service`
3632

3733
// Replace the imports
3834
content = content.replace(

scripts/fix-controller-syntax-errors.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const fs = require('node:fs')
2-
const _path = require('node:path')
32

43
// List of controller files with syntax errors
54
const controllerFiles = [

scripts/fix-remaining-controller-tests.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const fs = require('node:fs')
2-
const _path = require('node:path')
32

43
// List of controller test files that need to be fixed
54
const testFiles = [
@@ -26,7 +25,6 @@ for (const filePath of testFiles) {
2625
// Extract the controller name from the file path
2726
const pathParts = filePath.split('/')
2827
const controllerName = pathParts[pathParts.length - 2] // e.g., Role
29-
const _controllerFileName = pathParts[pathParts.length - 1].replace('.spec.ts', '.ts') // e.g., Role.controller.ts
3028

3129
// Replace the imports
3230
content = content.replace(

0 commit comments

Comments
 (0)