Skip to content

Commit

Permalink
test: prefix unused params with underscores (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Jan 4, 2025
1 parent 9d81783 commit 38d94f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const t = require('tap')
const fastify = require('fastify')
const FjsCompiler = require('../index')

const echo = async (req, reply) => { return req.body }
const echo = async (req) => { return req.body }

const sampleSchema = Object.freeze({
$id: 'example1',
Expand Down
2 changes: 1 addition & 1 deletion test/standalone.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ t.test('standalone', t => {
for (const fileName of generatedFileNames) {
try {
await fs.promises.unlink(path.join(__dirname, fileName))
} catch (e) {}
} catch {}
}
})

Expand Down

0 comments on commit 38d94f5

Please sign in to comment.