1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-11-27 08:34:42 +01:00
gojekyll/site/site_test.go
2017-07-04 09:09:36 -04:00

17 lines
331 B
Go

package site
import (
"testing"
"github.com/osteele/gojekyll/config"
"github.com/stretchr/testify/require"
)
func TestIsMarkdown(t *testing.T) {
s := New(config.Flags{})
require.Equal(t, "", s.PathPrefix())
require.False(t, s.KeepFile("random"))
require.True(t, s.KeepFile(".git"))
require.True(t, s.KeepFile(".svn"))
}