goldsmith/plugins/rule/rule_test.go

23 lines
418 B
Go
Raw Normal View History

2024-02-17 06:35:49 +00:00
package rule
import (
"testing"
"git.foosoft.net/alex/goldsmith"
"git.foosoft.net/alex/goldsmith/harness"
"git.foosoft.net/alex/goldsmith/plugins/frontmatter"
"git.foosoft.net/alex/goldsmith/plugins/layout"
)
func Test(self *testing.T) {
harness.Validate(
self,
func(gs *goldsmith.Goldsmith) {
gs.
Chain(New()).
Chain(frontmatter.New()).
Chain(layout.New().DefaultLayout("page"))
},
)
}