Skip to content

Commit

Permalink
resolves #14 correctly infer wavedrom type (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie authored Dec 22, 2020
1 parent 9a22af5 commit 749d5d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func GraphFormatFromFile(filePath string) (kroki.DiagramType, error) {
return kroki.Vega, nil
case ".vegalite", ".vgl", ".vl":
return kroki.VegaLite, nil
case "wavedrom":
case ".wavedrom":
return kroki.WaveDrom, nil
default:
return kroki.DiagramType(""), errors.Errorf(
Expand Down
4 changes: 4 additions & 0 deletions cmd/convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ func TestGraphFormatFromFile(t *testing.T) {
filePath: "hello.c4",
expected: kroki.C4PlantUML,
},
{
filePath: "hello.wavedrom",
expected: kroki.WaveDrom,
},
}
for _, c := range cases {

Expand Down

0 comments on commit 749d5d1

Please sign in to comment.