• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-client-gateway / 7100044696
89%

Build:
DEFAULT BRANCH: main
Ran 05 Dec 2023 11:26AM UTC
Jobs 2
Files 529
Run time 44s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Dec 2023 11:25AM UTC coverage: 89.251% (-0.5%) from 89.703%
7100044696

push

github

web-flow
Add functionality to resend email verification (#897)

- The `IEmailRepository` was extended to have a function for resending email verifications.
- The email verification can be resent if enough time has passed since this action was last triggered successfully. This timeframe is configurable with `EMAIL_VERIFICATION_CODE_RESEND_LOCK_WINDOW_MS` (default is 30 seconds).
- When resending the verification code, if the current code is still valid, then it is re-sent. If it expired, then a new one is generated, stored and re-sent to the same email address. The expiration time of the code can be set via `EMAIL_VERIFICATION_CODE_TTL_MS`.
- If this action is triggered for verified owners, an `EmailAlreadyVerifiedError` is thrown.
- If this action is triggered within `EMAIL_VERIFICATION_CODE_RESEND_LOCK_WINDOW_MS` from the last successful one, a `ResendVerificationTimespanError` is thrown.
- Else, it attempts to set a new code and send it. If the new code was not set, an `InvalidVerificationCodeError` is thrown.

1410 of 1722 branches covered (0.0%)

Branch coverage included in aggregate %.

15 of 32 new or added lines in 4 files covered. (46.88%)

3 existing lines in 2 files now uncovered.

5249 of 5739 relevant lines covered (91.46%)

151.8 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
50.0
src/domain/email/errors/email-already-verified.error.ts
1
50.0
src/domain/email/errors/invalid-verification-code.error.ts
1
50.0
src/domain/email/errors/verification-timeframe.error.ts
14
42.31
-37.69% src/domain/email/email.repository.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
77.78
-3.47% src/routes/transactions/mappers/common/transaction-info.mapper.ts
2
80.0
-20.0% src/routes/transactions/entities/__tests__/human-description.builder.ts
Jobs
ID Job ID Ran Files Coverage
1 run-test:e2e:cov - 7100044696.1 05 Dec 2023 11:26AM UTC 886
55.15
GitHub Action Run
2 run-test:cov - 7100044696.2 05 Dec 2023 11:27AM UTC 1054
89.75
GitHub Action Run
Source Files on build 7100044696
  • Tree
  • List 529
  • Changed 65
  • Source Changed 4
  • Coverage Changed 125
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #7100044696
  • 0448a361 on github
  • Prev Build on main (#7097733538)
  • Next Build on main (#7100541202)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc