From 92920273bec409563d1e38ea27f4d30f893598e8 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sat, 6 Mar 2021 13:51:07 +0100 Subject: [PATCH] Adjusted tests for the new testing env ref #154 --- src/config.ts | 3 --- src/tests/auth/auth_reset.spec.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/config.ts b/src/config.ts index 3c4c843..28b687e 100644 --- a/src/config.ts +++ b/src/config.ts @@ -28,9 +28,6 @@ if (typeof config.development !== "boolean") { if (config.mailer_url == "" || config.mailer_key == "") { errors++; } -if (config.testing) { - console.log("Discovered testing env. Ignoring all mailing errors!") -} function getPhoneCodeLocale(): CountryCode { return (process.env.PHONE_COUNTRYCODE as CountryCode); } diff --git a/src/tests/auth/auth_reset.spec.ts b/src/tests/auth/auth_reset.spec.ts index 64aa790..59da15a 100644 --- a/src/tests/auth/auth_reset.spec.ts +++ b/src/tests/auth/auth_reset.spec.ts @@ -38,7 +38,7 @@ describe('POST /api/auth/reset valid', () => { it('valid reset token request should return 200 (500 w/o correct auth)', async () => { const res1 = await axios.post(base + '/api/auth/reset', { email: "demo_reset1@dev.lauf-fuer-kaya.de" }, axios_config); reset_token = res1.data.resetToken; - expect(res1.status).toEqual(500); + expect(res1.status).toEqual(200); }); }); // ---------------