1
0
mirror of https://github.com/danog/gojekyll.git synced 2025-01-22 20:51:24 +01:00
gojekyll/page_test.go
2017-06-15 19:49:04 -04:00

14 lines
240 B
Go

package main
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestIsMarkdown(t *testing.T) {
assert.True(t, isMarkdown("name.md"))
assert.True(t, isMarkdown("name.markdown"))
assert.False(t, isMarkdown("name.html"))
}