fix(eslint): resolve @typescript-eslint/no-unused-vars errors
This commit is contained in:
@@ -6,7 +6,7 @@ export const error = vi.fn<typeof core.error>()
|
|||||||
export const info = vi.fn<typeof core.info>()
|
export const info = vi.fn<typeof core.info>()
|
||||||
export const getInput = vi
|
export const getInput = vi
|
||||||
.fn<typeof core.getInput>()
|
.fn<typeof core.getInput>()
|
||||||
.mockImplementation((name, options) => {
|
.mockImplementation((name) => {
|
||||||
const key = `INPUT_${name.replace(/ /g, '_').toUpperCase()}`
|
const key = `INPUT_${name.replace(/ /g, '_').toUpperCase()}`
|
||||||
return process.env[key] || ''
|
return process.env[key] || ''
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ describe('run: pr', () => {
|
|||||||
path.join(__dirname, 'testdata/audit/success.txt')
|
path.join(__dirname, 'testdata/audit/success.txt')
|
||||||
),
|
),
|
||||||
status: 0,
|
status: 0,
|
||||||
run: (auditLevel: string): Promise<void> => {
|
run: (): Promise<void> => {
|
||||||
return Promise.resolve(void 0)
|
return Promise.resolve(void 0)
|
||||||
},
|
},
|
||||||
foundVulnerability: (): boolean => {
|
foundVulnerability: (): boolean => {
|
||||||
@@ -78,7 +78,7 @@ describe('run: pr', () => {
|
|||||||
path.join(__dirname, 'testdata/audit/error.txt')
|
path.join(__dirname, 'testdata/audit/error.txt')
|
||||||
),
|
),
|
||||||
status: 1,
|
status: 1,
|
||||||
run: (auditLevel: string): Promise<void> => {
|
run: (): Promise<void> => {
|
||||||
return Promise.resolve(void 0)
|
return Promise.resolve(void 0)
|
||||||
},
|
},
|
||||||
foundVulnerability: (): boolean => {
|
foundVulnerability: (): boolean => {
|
||||||
@@ -105,7 +105,7 @@ describe('run: pr', () => {
|
|||||||
path.join(__dirname, 'testdata/audit/error.txt')
|
path.join(__dirname, 'testdata/audit/error.txt')
|
||||||
),
|
),
|
||||||
status: 1,
|
status: 1,
|
||||||
run: (auditLevel: string): Promise<void> => {
|
run: (): Promise<void> => {
|
||||||
return Promise.resolve(void 0)
|
return Promise.resolve(void 0)
|
||||||
},
|
},
|
||||||
foundVulnerability: (): boolean => {
|
foundVulnerability: (): boolean => {
|
||||||
@@ -147,7 +147,7 @@ describe('run: issue', () => {
|
|||||||
path.join(__dirname, 'testdata/audit/error.txt')
|
path.join(__dirname, 'testdata/audit/error.txt')
|
||||||
),
|
),
|
||||||
status: 1,
|
status: 1,
|
||||||
run: (auditLevel: string): Promise<void> => {
|
run: (): Promise<void> => {
|
||||||
return Promise.resolve(void 0)
|
return Promise.resolve(void 0)
|
||||||
},
|
},
|
||||||
foundVulnerability: (): boolean => {
|
foundVulnerability: (): boolean => {
|
||||||
|
|||||||
Reference in New Issue
Block a user