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

Allow DTSTAMP to be set like any other event attribute #269

Open
dambaron opened this issue Jan 4, 2024 · 0 comments
Open

Allow DTSTAMP to be set like any other event attribute #269

dambaron opened this issue Jan 4, 2024 · 0 comments

Comments

@dambaron
Copy link

dambaron commented Jan 4, 2024

The DTSTAMP field is set using the default values for an event and uses the Date.now() method.

This behavior may lead to flaky UT when trying to perform assertions on the field value since it will change every time a test is run.

The workaround I currently use is to mock the system time through Jest but it would be much easier to allow setting this attribute.

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

No branches or pull requests

1 participant