test(markdown): Add simple test for markdown section parsing utility

This commit is contained in:
qievenz 2026-01-19 19:53:27 -03:00
parent a589edd13d
commit adca4e9edd

14
test-sections.js Normal file
View file

@ -0,0 +1,14 @@
// Test parseMarkdownWithSections function
const { parseMarkdownWithSections } = require('./src/app/util/parse-markdown-tasks.ts');
const testMarkdown = `# Backend Tasks
- Setup API routes
- Configure database
# Frontend Tasks
- Create login component
- Add authentication`;
console.log('Testing parseMarkdownWithSections...');
const result = parseMarkdownWithSections(testMarkdown);
console.log('Result:', JSON.stringify(result, null, 2));