Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
even better test
Browse files Browse the repository at this point in the history
  • Loading branch information
bketelsen committed Jul 28, 2021
1 parent 2b7de2f commit fde1e7e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/encoding/markdown/markdown_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package markdown

import (
"fmt"
"testing"
)

Expand All @@ -9,12 +10,18 @@ func TestFormat(t *testing.T) {
key1: value
key2: value2
---
---
revealKey: value
---
My Body
---
Body Line 2`
expected := `key1: value
key2: value2
body: |
---
revealKey: value
---
My Body
---
Body Line 2
Expand All @@ -24,6 +31,8 @@ body: |
t.Error(err)
}
if output != expected {
fmt.Println(expected)
fmt.Println(output)
t.Error("output doesn't match expected")
}
}

0 comments on commit fde1e7e

Please sign in to comment.