Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix updatedAt test #119

Merged
merged 1 commit into from
Jan 30, 2024
Merged

test: fix updatedAt test #119

merged 1 commit into from
Jan 30, 2024

Conversation

iuliag
Copy link
Contributor

@iuliag iuliag commented Jan 30, 2024

In some cases, the test failed with assertion error, because it compared expected with passed updatedAt on a new record (no id), whereas for new records an updatedAt is generated in the constructor.

AssertionError: expected '2024-01-18T16:23:59.276Z' to equal '2024-01-18T16:23:59.275Z'

In some cases, the test failed with assertion error, because it compared expected with passed updatedAt on a new record (no id), whereas for new records a updatedAt is generated in the constructor.

```
AssertionError: expected '2024-01-18T16:23:59.276Z' to equal '2024-01-18T16:23:59.275Z'
```
Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6244a5d) 100.00% compared to head (7cdba3e) 100.00%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #119   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        26           
  Lines         2588      2595    +7     
=========================================
+ Hits          2588      2595    +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@iuliag iuliag merged commit bb3552e into main Jan 30, 2024
6 checks passed
@iuliag iuliag deleted the fix-updatedAt-test branch January 30, 2024 09:29
@adobe-bot
Copy link

🎉 This PR is included in version @adobe/spacecat-shared-data-access-v1.13.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants