mermaid-js / mermaid-cli

Command line tool for the Mermaid library
MIT License
2.48k stars 234 forks source link

test: add a basic git graph test #408

Closed aloisklink closed 2 years ago

aloisklink commented 2 years ago

:bookmark_tabs: Summary

Add a test case for git graphs.

gitGraph
       commit
       commit
       branch feature
       commit
       checkout main
       merge feature

:straight_ruler: Design Decisions

Somebody reported that git graphs wasn't working in mermaid-cli, so I've added a test just to make sure it is working, and it seems like it is!

I've replaced diagram 2 in the test-positive/mermaid.md, since it's identical to diagram 7

:clipboard: Tasks

Make sure you