fix(eslint): resolve @typescript-eslint/no-unused-vars errors

This commit is contained in:
Naoki Oketani
2025-05-07 11:58:37 +00:00
parent 162f0864b5
commit 307d90f9c7
2 changed files with 5 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ export const error = vi.fn<typeof core.error>()
export const info = vi.fn<typeof core.info>()
export const getInput = vi
.fn<typeof core.getInput>()
.mockImplementation((name, options) => {
.mockImplementation((name) => {
const key = `INPUT_${name.replace(/ /g, '_').toUpperCase()}`
return process.env[key] || ''
})

View File

@@ -53,7 +53,7 @@ describe('run: pr', () => {
path.join(__dirname, 'testdata/audit/success.txt')
),
status: 0,
run: (auditLevel: string): Promise<void> => {
run: (): Promise<void> => {
return Promise.resolve(void 0)
},
foundVulnerability: (): boolean => {
@@ -78,7 +78,7 @@ describe('run: pr', () => {
path.join(__dirname, 'testdata/audit/error.txt')
),
status: 1,
run: (auditLevel: string): Promise<void> => {
run: (): Promise<void> => {
return Promise.resolve(void 0)
},
foundVulnerability: (): boolean => {
@@ -105,7 +105,7 @@ describe('run: pr', () => {
path.join(__dirname, 'testdata/audit/error.txt')
),
status: 1,
run: (auditLevel: string): Promise<void> => {
run: (): Promise<void> => {
return Promise.resolve(void 0)
},
foundVulnerability: (): boolean => {
@@ -147,7 +147,7 @@ describe('run: issue', () => {
path.join(__dirname, 'testdata/audit/error.txt')
),
status: 1,
run: (auditLevel: string): Promise<void> => {
run: (): Promise<void> => {
return Promise.resolve(void 0)
},
foundVulnerability: (): boolean => {