Commit Graph
2 Commits
Author SHA1 Message Date
AlexKucera b0f8755a56 Enhances security checks and mocks fs module in tests
Updates security check patterns to include brackets for improved command injection prevention. Enhances test reliability by mocking Node's fs module to replace custom mock functions, aligning test behavior closer to actual usage scenarios and ensuring consistent outcomes.

No specific issue reference.
2025-11-09 15:26:33 +01:00
AlexKucera 7ac9e1f489 Adds unit tests for core functionalities
Adds comprehensive unit tests to improve code coverage for core functionalities: constants, paper size mapping, modal settings, security utilities, temporary directory management, and variable mapping.

This ensures that basic functionalities work as expected and enhances the reliability of the plugin.

Additionally, this commit includes a mock Obsidian API to facilitate testing in a non-Obsidian environment.
2025-11-05 08:03:24 +01:00