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

atlp-rwanda / champs-ec-fe / 13ba735d-90f9-49d3-9acb-f5a6c957f324

18 Jun 2024 10:20PM UTC coverage: 58.852% (-28.3%) from 87.175%
13ba735d-90f9-49d3-9acb-f5a6c957f324

Pull #13

circleci

k3lly003
Merge pull request #26 from atlp-rwanda/ft-disable-users-#187300202

Ft disable users #187300202
Pull Request #13: feat(ProductView): ProductView (all/one) according to there user's role #187300196

70 of 95 branches covered (73.68%)

Branch coverage included in aggregate %.

84 of 626 new or added lines in 24 files covered. (13.42%)

219 existing lines in 7 files now uncovered.

1366 of 2345 relevant lines covered (58.25%)

2.27 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/validations/Updatepassword.ts
UNCOV
1
import { z } from 'zod';
×
UNCOV
2

×
UNCOV
3
export const Updatepassword = z
×
UNCOV
4
  .object({
×
UNCOV
5
    oldPassword: z.string().nonempty({ message: 'Password is required' }),
×
UNCOV
6
    newPassword: z
×
UNCOV
7
      .string()
×
UNCOV
8
      .nonempty({ message: 'Password is required' })
×
UNCOV
9
      .min(6, { message: 'Password must be at least 6 characters long' })
×
UNCOV
10
      .regex(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*])/, {
×
UNCOV
11
        message: 'Include uppercase, number, special characters',
×
UNCOV
12
      }),
×
UNCOV
13
    confirmPassword: z
×
UNCOV
14
      .string()
×
UNCOV
15
      .nonempty({ message: 'Confirm Password is required' }),
×
UNCOV
16
  })
×
UNCOV
17
  .refine((data) => data.newPassword !== data.oldPassword, {
×
UNCOV
18
    message: 'new password must be the different to old password ',
×
UNCOV
19
    path: ['newPassword'],
×
UNCOV
20
  })
×
UNCOV
21
  .refine((data) => data.newPassword === data.confirmPassword, {
×
UNCOV
22
    message: 'password does not match',
×
UNCOV
23
    path: ['confirmPassword'],
×
UNCOV
24
  });
×
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