WIP: Adding support for more shapes

This commit is contained in:
Knut Sveidqvist
2025-04-28 13:24:55 +02:00
parent 7dd31dc7c9
commit 08048c39d7
3 changed files with 14 additions and 1 deletions

View File

@@ -174,7 +174,7 @@ describe('Nodes (ported from mindmap.spec.ts)', () => {
expect(childNode.desc).toBe('child1');
});
it('MMP-9 should handle an id and type for a node definition', () => {
it.only('MMP-9 should handle an id and type for a node definition', () => {
const result = parse('mindmap\nroot\n theId(child1)');
expect(result.lexerErrors).toHaveLength(0);
expect(result.parserErrors).toHaveLength(0);
@@ -196,6 +196,7 @@ describe('Nodes (ported from mindmap.spec.ts)', () => {
it('MMP-11 multiple types (cloud)', () => {
const result = parse('mindmap\nroot)the root(');
console.debug('RESULT:', result.parserErrors);
expect(result.lexerErrors).toHaveLength(0);
expect(result.parserErrors).toHaveLength(0);
const rootNode = result.value.MindmapRows[0].item as OtherComplex;