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

tesh test case for yaml dates without time stamp #385

Merged
merged 1 commit into from
Jan 24, 2024
Merged

tesh test case for yaml dates without time stamp #385

merged 1 commit into from
Jan 24, 2024

Conversation

tjex
Copy link
Member

@tjex tjex commented Jan 24, 2024

This adds a test case for #382 which found that dates without time
stamps in yaml frontmatter were causing the respective note to be returned when
quering the day before the note creation.

The test case was tested against commit 55d5487, which was before this
bug was resolved: the test failed (the note from 24th of Jan was returned when querying
for notes created on the 23rd of jan)

Ran again against the current commit (post #382 being resolved) and it
passes.

Also, in contributing.md, mickael wrote that it's good practice that we make a test fixture per issue with tesh tests.
But there was already a tests/markdown-yaml-frontmatter.tesh file.

Should I instead add this new test coverage to that test fixture?

@tjex tjex requested a review from mcDevnagh January 24, 2024 18:16
Copy link
Contributor

@mcDevnagh mcDevnagh left a comment

Choose a reason for hiding this comment

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

Beautiful

@mcDevnagh mcDevnagh merged commit d4e542b into zk-org:main Jan 24, 2024
3 checks passed
@tjex tjex deleted the issue-382-test branch January 24, 2024 18:22
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

Successfully merging this pull request may close these issues.

2 participants