mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
test(markdown): Add simple test for markdown section parsing utility
This commit is contained in:
parent
a589edd13d
commit
adca4e9edd
1 changed files with 14 additions and 0 deletions
14
test-sections.js
Normal file
14
test-sections.js
Normal 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));
|
||||
Loading…
Add table
Add a link
Reference in a new issue