From c0c16feacf907e6a2013ae7c79736692b501ea19 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Wed, 18 Oct 2023 18:36:06 +0100 Subject: [PATCH] chore: add missing `use strict` directives --- templates/plugin/test/index.test.js | 2 ++ test/args.test.js | 2 ++ test/data/custom-config.js | 2 ++ test/data/custom-logger.js | 2 ++ test/data/object.js | 2 ++ test/generate-swagger.test.js | 2 ++ util.js | 2 ++ 7 files changed, 14 insertions(+) diff --git a/templates/plugin/test/index.test.js b/templates/plugin/test/index.test.js index e914f8f4..5d004a0c 100644 --- a/templates/plugin/test/index.test.js +++ b/templates/plugin/test/index.test.js @@ -1,3 +1,5 @@ +'use strict' + const { test } = require('tap') test('should register the correct decorator', async t => { diff --git a/test/args.test.js b/test/args.test.js index 9b1a59fb..640d682c 100644 --- a/test/args.test.js +++ b/test/args.test.js @@ -1,3 +1,5 @@ +'use strict' + const t = require('tap') const test = t.test const parseArgs = require('../args') diff --git a/test/data/custom-config.js b/test/data/custom-config.js index 71dbcd2d..fbb74b1e 100644 --- a/test/data/custom-config.js +++ b/test/data/custom-config.js @@ -1,3 +1,5 @@ +'use strict' + module.exports = { port: 5000, address: 'fastify.io:9999', diff --git a/test/data/custom-logger.js b/test/data/custom-logger.js index f58b07aa..cfd70093 100644 --- a/test/data/custom-logger.js +++ b/test/data/custom-logger.js @@ -1,3 +1,5 @@ +'use strict' + module.exports = { name: 'Custom Logger', customLevels: { diff --git a/test/data/object.js b/test/data/object.js index 4ba52ba2..545992eb 100644 --- a/test/data/object.js +++ b/test/data/object.js @@ -1 +1,3 @@ +'use strict' + module.exports = {} diff --git a/test/generate-swagger.test.js b/test/generate-swagger.test.js index 5e98e167..26561499 100644 --- a/test/generate-swagger.test.js +++ b/test/generate-swagger.test.js @@ -1,3 +1,5 @@ +'use strict' + const path = require('path') const t = require('tap') const { test } = t diff --git a/util.js b/util.js index c86ebe36..a76d2e23 100644 --- a/util.js +++ b/util.js @@ -1,3 +1,5 @@ +'use strict' + const fs = require('fs') const path = require('path') const url = require('url')