Adjusted tests for the new testing env

ref #154
This commit is contained in:
Nicolai Ort 2021-03-06 13:51:07 +01:00
parent 6bb3ae8ba9
commit 92920273be
2 changed files with 1 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);
});
});
// ---------------