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

Standardise how model helpers generate dates #409

Merged
merged 5 commits into from
Sep 5, 2023

Conversation

Jozzey
Copy link
Contributor

@Jozzey Jozzey commented Sep 5, 2023

We have spotted some inconsistency in how our model test helpers are populating dates. Some are using just text for the date and others are creating actual dates using new Date().

This PR will ensure that all helpers are using the new Date() method to populate their dates.

There are also some helpers that are not correctly creating their timestamps so these will also be fixed in this PR.

We have spotted some inconsistency in how our model test helpers are adding dates. Some are using just text for the date as other are creating actual dates using `new Date()`.

This PR will ensure that all helpers are using the `new Date()` method to populate thier dates.
@Jozzey Jozzey added the housekeeping Refactoring, tidying up or other work which supports the project label Sep 5, 2023
@Jozzey Jozzey self-assigned this Sep 5, 2023
@Jozzey Jozzey marked this pull request as ready for review September 5, 2023 15:10
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jozzey Jozzey merged commit b5663a7 into main Sep 5, 2023
@Jozzey Jozzey deleted the standardise-model-helper-date-creation branch September 5, 2023 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants