Skip to content

Commit 38d94f5

Browse files
authored
test: prefix unused params with underscores (#60)
1 parent 9d81783 commit 38d94f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/plugin.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const t = require('tap')
44
const fastify = require('fastify')
55
const FjsCompiler = require('../index')
66

7-
const echo = async (req, reply) => { return req.body }
7+
const echo = async (req) => { return req.body }
88

99
const sampleSchema = Object.freeze({
1010
$id: 'example1',

test/standalone.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ t.test('standalone', t => {
2323
for (const fileName of generatedFileNames) {
2424
try {
2525
await fs.promises.unlink(path.join(__dirname, fileName))
26-
} catch (e) {}
26+
} catch {}
2727
}
2828
})
2929

0 commit comments

Comments
 (0)