aboutsummaryrefslogtreecommitdiff
path: root/build/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/index.js')
-rw-r--r--build/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/index.js b/build/index.js
index 0a6944c..f499c21 100644
--- a/build/index.js
+++ b/build/index.js
@@ -52,5 +52,5 @@ app.get('/leaderboards', async (req, res) => {
res.json(await database_1.fetchAllLeaderboardsCategorized());
});
// only run the server if it's not doing tests
-if (typeof global.it !== 'function')
+if (!globalThis.isTest)
app.listen(8080, () => console.log('App started :)'));