diff --git a/src/routes/generateToken.ts b/src/routes/generateToken.ts index 8b06612..cc88992 100644 --- a/src/routes/generateToken.ts +++ b/src/routes/generateToken.ts @@ -23,6 +23,7 @@ export async function generateTokenRequest(req: GenerateTokenRequest, res: Respo if (type === TokenType.patreon || (type === TokenType.local && adminUserID === config.adminUserID)) { const licenseKey = await createAndSaveToken(type, code); + /* istanbul ignore else */ if (licenseKey) { return res.status(200).send(`

diff --git a/src/utils/innerTubeAPI.ts b/src/utils/innerTubeAPI.ts index c330e92..475cda9 100644 --- a/src/utils/innerTubeAPI.ts +++ b/src/utils/innerTubeAPI.ts @@ -18,6 +18,7 @@ async function getFromITube (videoID: string): Promise { const result = await axios.post(url, data, { timeout: 3500 }); + /* istanbul ignore else */ if (result.status === 200) { return result.data.videoDetails; } else { @@ -39,6 +40,7 @@ export async function getPlayerData (videoID: string, ignoreCache = false): Prom return data as innerTubeVideoDetails; } } catch (err) { + /* istanbul ignore next */ return Promise.reject(err); } }