hackforla / lucky-parking

Visualization of parking data to assist in understanding of the effects of parking policies on a neighborhood by neighborhood basis in the City of Los Angeles
https://www.hackforla.org/projects/lucky-parking.html
34 stars 60 forks source link

Test date utilities #604

Closed glenflorendo closed 9 months ago

glenflorendo commented 9 months ago

Description

This PR provides complete testing of the date utility functions.

Date Utilities
    calculateDateRange
      ✓ calculates one year to now (2 ms)
      ✓ calculates year to now
      ✓ calculates three months to now (1 ms)
      ✓ calculates one month to now
    formatToMiddleEndian
      ✓ formats to middle-endian date format  (3 ms)
    formatToRangeString
      ✓ formats to date range string

Related Issues

Resolves #585

Testing

-----------------------------------------------|---------|----------|---------|---------|-----------------------
File                                           | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s     
-----------------------------------------------|---------|----------|---------|---------|-----------------------
 src/shared/lib/utilities                      |   60.71 |    57.14 |      50 |   68.42 |                       
  date.ts                                      |     100 |      100 |     100 |     100 |                       

Checklist

netlify[bot] commented 9 months ago

Deploy Preview for lucky-parking-staging-storybook canceled.

Name Link
Latest commit bc9c7bd51036fbde8bac8a2958da3019c8709b9a
Latest deploy log https://app.netlify.com/sites/lucky-parking-staging-storybook/deploys/656665f7759b09000878ee50
netlify[bot] commented 9 months ago

Deploy Preview for lucky-parking-staging ready!

Name Link
Latest commit bc9c7bd51036fbde8bac8a2958da3019c8709b9a
Latest deploy log https://app.netlify.com/sites/lucky-parking-staging/deploys/656665f75e2fee00086de5b7
Deploy Preview https://deploy-preview-604--lucky-parking-staging.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.