rodekruis / IBF-system

Tools required to trigger, manage and execute the Red Cross Early Action Protocols for natural disasters.
https://ibf.510.global
Apache License 2.0
12 stars 15 forks source link

fix.control flow #1536

Closed gulfaraz closed 1 month ago

gulfaraz commented 1 month ago

Describe your changes

Checklist before requesting a review

gulfaraz commented 1 month ago
> test:api:all
> node --expose-gc node_modules/.bin/jest --config=jest.api.config.js --runInBand --detectOpenHandles --logHeapUsage

ts-jest[versions] (WARN) Version 4.9.5 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions.
 PASS  test/email/floods/email-uga-floods.test.ts (35.315s, 81 MB heap size)
  Should send an email for uga floods
    ✓ default (6768ms)
    ✓ warning (7606ms)
    ✓ warning-to-trigger (8982ms)
    ✓ no-trigger (11377ms)

 PASS  test/email/drought/email-uga-drought.test.ts (16.988s, 80 MB heap size)
  Should send an email for uga drought
    ✓ triggered in january (9051ms)
    ✓ non triggered any month (7777ms)

 PASS  test/email/floods/email-ssd-floods.test.ts (21.086s, 81 MB heap size)
  Should send an email for ssd floods
    ✓ default (10847ms)
    ✓ no-trigger (10118ms)

 PASS  test/email/typhoon/email-phl-typhoon.test.ts (11.037s, 88 MB heap size)
  Should send an email for phl typhoon
    ✓ default (10905ms)

Test Suites: 4 passed, 4 total
Tests:       9 passed, 9 total
Snapshots:   0 total
Time:        85.107s, estimated 92s
Ran all test suites.