From c502790295815b5051690b2f7861c6cd872d9b5a Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Sat, 20 Jan 2024 18:02:17 +0200 Subject: [PATCH] chore: run eslint on tools/run-id-tests --- tools/run-id-tests.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/run-id-tests.js b/tools/run-id-tests.js index 2504e2e..799a8e4 100644 --- a/tools/run-id-tests.js +++ b/tools/run-id-tests.js @@ -1,18 +1,18 @@ -import { spawnSync } from 'node:child_process'; -import process from 'node:process'; +import { spawnSync } from 'node:child_process' +import process from 'node:process' // Import directly from file so that this script works without dependencies installed. -import { games } from './../lib/games.js'; +import { games } from './../lib/games.js' -const ID_TEST_BIN = process.env["GAMEDIG_ID_TESTER"] || "gamedig-id-tests"; +const ID_TEST_BIN = process.env.GAMEDIG_ID_TESTER || 'gamedig-id-tests' const result = spawnSync(ID_TEST_BIN, { - input: JSON.stringify(games), - stdio: ['pipe', 'inherit', 'inherit'], -}); + input: JSON.stringify(games), + stdio: ['pipe', 'inherit', 'inherit'] +}) if (result.error) { - throw result.error; + throw result.error } -process.exit(result.status); +process.exit(result.status)