Skip to content

Commit

Permalink
test: prefix unused params with underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Jan 2, 2025
1 parent 8dcb4d5 commit 3f5e299
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/custom-ajv.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ test('ajv enhancement', async t => {
schema: testCase.schema,
data: testCase.data,
ajv: {
customOptions (ajvInstance) {
customOptions (_ajvInstance) {
// do nothing
}
}
Expand Down
4 changes: 2 additions & 2 deletions types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ expectType<KeywordDefinition>(envSchema.keywords.separator)

const optWithAjvCustomOptions: EnvSchemaOpt = {
ajv: {
customOptions (ajvInstance: Ajv): Ajv {
customOptions (_ajvInstance: Ajv): Ajv {
return new Ajv()
},
},
}
expectType<EnvSchemaOpt>(optWithAjvCustomOptions)
expectError<EnvSchemaOpt>({
ajv: {
customOptions (ajvInstance: Ajv) {},
customOptions (_ajvInstance: Ajv) {},
},
})

Expand Down

0 comments on commit 3f5e299

Please sign in to comment.