From 780555e9dfa6f2eb5e2fce67a1d35c5987ababd8 Mon Sep 17 00:00:00 2001 From: Michael C Date: Tue, 21 Feb 2023 20:16:25 -0500 Subject: [PATCH] add ignores for getTotalStats --- src/routes/getTotalStats.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/getTotalStats.ts b/src/routes/getTotalStats.ts index 49699c0..c0fb7bf 100644 --- a/src/routes/getTotalStats.ts +++ b/src/routes/getTotalStats.ts @@ -34,6 +34,7 @@ export async function getTotalStats(req: Request, res: Response): Promise const row = await getStats(countContributingUsers); lastFetch = row; + /* istanbul ignore if */ if (!row) res.sendStatus(500); const extensionUsers = chromeUsersCache + firefoxUsersCache; @@ -68,6 +69,7 @@ function getStats(countContributingUsers: boolean): Promise { } function updateExtensionUsers() { + /* istanbul ignore else */ if (config.userCounterURL) { axios.get(`${config.userCounterURL}/api/v1/userCount`) .then(res => apiUsersCache = Math.max(apiUsersCache, res.data.userCount))