-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Description
Currently, there are no automated tests for the DocStripper class. Adding tests would help ensure reliability and prevent regressions.
Task
Create unit tests for:
isPageNumber()methodisHeaderFooter()methodprocessText()method- Edge cases (empty files, single line, etc.)
Testing Framework
- JavaScript: Jest or Mocha
- Python: pytest or unittest
Files to Create
tests/test_docstripper.js(for web app)tests/test_tool.py(for CLI)
Acceptance Criteria
- Test coverage for core methods
- Edge cases covered
- Tests run in CI/CD (future)
Tips
- Look at
examples/before_after.txtfor test cases - Test both positive and negative cases
- Mock File objects for web app tests