mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-11 19:39:43 +02:00
fix: update tidy tree test cases
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
@@ -3,10 +3,7 @@ import { imgSnapshotTest } from '../../helpers/util.ts';
|
|||||||
describe('Mindmap Tidy Tree', () => {
|
describe('Mindmap Tidy Tree', () => {
|
||||||
it('1-tidy-tree: should render a simple mindmap without children', () => {
|
it('1-tidy-tree: should render a simple mindmap without children', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
` ---
|
`
|
||||||
config:
|
|
||||||
layout: tidy-tree
|
|
||||||
---
|
|
||||||
mindmap
|
mindmap
|
||||||
root((mindmap))
|
root((mindmap))
|
||||||
A
|
A
|
||||||
@@ -16,10 +13,7 @@ describe('Mindmap Tidy Tree', () => {
|
|||||||
});
|
});
|
||||||
it('2-tidy-tree: should render a simple mindmap', () => {
|
it('2-tidy-tree: should render a simple mindmap', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
` ---
|
`
|
||||||
config:
|
|
||||||
layout: tidy-tree
|
|
||||||
---
|
|
||||||
mindmap
|
mindmap
|
||||||
root((mindmap is a long thing))
|
root((mindmap is a long thing))
|
||||||
A
|
A
|
||||||
@@ -31,10 +25,7 @@ describe('Mindmap Tidy Tree', () => {
|
|||||||
});
|
});
|
||||||
it('3-tidy-tree: should render a mindmap with different shapes', () => {
|
it('3-tidy-tree: should render a mindmap with different shapes', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
` ---
|
`
|
||||||
config:
|
|
||||||
layout: tidy-tree
|
|
||||||
---
|
|
||||||
mindmap
|
mindmap
|
||||||
root((mindmap))
|
root((mindmap))
|
||||||
Origins
|
Origins
|
||||||
@@ -58,10 +49,7 @@ describe('Mindmap Tidy Tree', () => {
|
|||||||
});
|
});
|
||||||
it('4-tidy-tree: should render a mindmap with children', () => {
|
it('4-tidy-tree: should render a mindmap with children', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
` ---
|
`
|
||||||
config:
|
|
||||||
layout: tidy-tree
|
|
||||||
---
|
|
||||||
mindmap
|
mindmap
|
||||||
((This is a mindmap))
|
((This is a mindmap))
|
||||||
child1
|
child1
|
||||||
|
Reference in New Issue
Block a user