mirror of
https://github.com/danog/gojekyll.git
synced 2024-11-27 09:44:41 +01:00
15 lines
282 B
Go
15 lines
282 B
Go
package gojekyll
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestIsMarkdown(t *testing.T) {
|
|
site := NewSite()
|
|
require.True(t, site.IsMarkdown("name.md"))
|
|
require.True(t, site.IsMarkdown("name.markdown"))
|
|
require.False(t, site.IsMarkdown("name.html"))
|
|
}
|