Skip to content

Add unit tests for notebook-based template source (#66)#130

Open
Aaravanand00 wants to merge 1 commit intojoplin:masterfrom
Aaravanand00:add-templates-utils-tests
Open

Add unit tests for notebook-based template source (#66)#130
Aaravanand00 wants to merge 1 commit intojoplin:masterfrom
Aaravanand00:add-templates-utils-tests

Conversation

@Aaravanand00
Copy link
Contributor

This PR adds comprehensive unit tests for the notebook-based template sourcing scenario as requested in #66.

Highlights:

  • Covers empty notebook case
  • Validates selector behavior when templates exist
  • Tests duplicate removal and sorting logic
  • Verifies isolation (ensures tag-related functions are not invoked)
  • Confirms correct folder resolution ("Templates")
  • Maintains full TypeScript compliance
  • No production code changes

All tests pass locally and ESLint reports no issues.

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