mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-22 17:56:43 +02:00
17 lines
467 B
JavaScript
17 lines
467 B
JavaScript
import { FlowDB } from './packages/mermaid/src/diagrams/flowchart/flowDb.ts';
|
|
import flow from './packages/mermaid/src/diagrams/flowchart/parser/flowParserAdapter.ts';
|
|
|
|
// Set up the test environment
|
|
flow.yy = new FlowDB();
|
|
flow.yy.clear();
|
|
|
|
console.log('=== Testing simple arrow ===');
|
|
console.log('Input: "-->"');
|
|
|
|
try {
|
|
const result = flow.parse('-->');
|
|
console.log('Parse result:', result);
|
|
} catch (error) {
|
|
console.error('Parse error:', error.message);
|
|
}
|