1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-11-30 08:48:59 +01:00
gojekyll/sites/site_test.go

15 lines
279 B
Go
Raw Normal View History

package sites
2017-06-15 13:19:49 +02:00
import (
"testing"
"github.com/stretchr/testify/require"
2017-06-15 13:19:49 +02:00
)
2017-06-16 01:49:04 +02:00
func TestIsMarkdown(t *testing.T) {
2017-06-17 04:09:25 +02:00
site := NewSite()
require.True(t, site.IsMarkdown("name.md"))
require.True(t, site.IsMarkdown("name.markdown"))
require.False(t, site.IsMarkdown("name.html"))
2017-06-15 13:19:49 +02:00
}