(t *testing.T)
| 61 | } |
| 62 | |
| 63 | func TestSyntaxAdapterWithoutNotes(t *testing.T) { |
| 64 | c, err := commit.NewParser().Parse("feat: expose records\n") |
| 65 | if err != nil { |
| 66 | t.Fatal(err) |
| 67 | } |
| 68 | if len(c.Notes()) != 0 || c.Message() != "feat: expose records\n" { |
| 69 | t.Fatal("unexpected empty-footer result") |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | func TestSyntaxInspectionAdapter(t *testing.T) { |
| 74 | p := commit.NewParser() |