Skip to content

Commit

Permalink
add a testcase in playground
Browse files Browse the repository at this point in the history
  • Loading branch information
ad1992 committed May 13, 2024
1 parent a73ab68 commit 9f81da8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions playground/testcases/flowchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,4 +468,17 @@ C -->|Two| E[Result two]
`,
type: "flowchart",
},
{
name: "When some edges aren't present in DOM",
definition: `flowchart TB
subgraph conference
frontend
backend
security
end
frontend --> |Dive into frontend frameworks| conference
backend --> |Learn all about backend| conference
security --> |securing web apps| conference`,
type: "flowchart",
},
];
2 changes: 1 addition & 1 deletion src/parser/flowchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
Vertex,
} from "../interfaces.js";

import { Diagram } from "mermaid/dist/Diagram.js";
import type { Diagram } from "mermaid/dist/Diagram.js";

export interface Flowchart {
type: "flowchart";
Expand Down

0 comments on commit 9f81da8

Please sign in to comment.