Skip to content

Conversation

@fboucher
Copy link
Owner

Corrects assertions in note endpoint tests to accurately reflect expected behavior.

Addresses issues where the test expected a ReadingNote object instead of a Note object after the type renaming.

Also removes a redundant non-null assertion as the subsequent BeEmpty() assertion already implies a non-null value.

Fixes #83

Corrects assertions in note endpoint tests to accurately reflect expected behavior.

Addresses issues where the test expected a `ReadingNote` object instead of a `Note` object after the type renaming.

Also removes a redundant non-null assertion as the subsequent `BeEmpty()` assertion already implies a non-null value.

Fixes #83
Introduces unit tests for domain models, including:
- `ContainsPlaceholderAttribute`
- `NoteCategories`
- `Note`
- `PostSuggestion`
- `ReadingNote`
- `SearchCriterias`

These tests cover various aspects of the domain models, such as validation, serialization/deserialization, and property setting.

The old `NoteTests` and `ReadingNoteTests` files were deleted since they were duplicated.

The goal is to ensure the correctness and reliability of the core domain logic.
@github-actions
Copy link

Code Coverage

Package Line Rate Branch Rate Health
NoteBookmark.Domain 84% 76%
NoteBookmark.Api 88% 70%
NoteBookmark.ServiceDefaults 96% 75%
NoteBookmark.Domain 84% 76%
NoteBookmark.Api 88% 70%
NoteBookmark.ServiceDefaults 96% 75%
Summary 87% (1140 / 1304) 72% (244 / 340)

@fboucher fboucher merged commit 2e963da into v-next Dec 13, 2025
2 checks passed
@fboucher fboucher deleted the 83-fix-the-failing-tests branch December 13, 2025 22:08
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.

1 participant