1
0
mirror of https://github.com/danog/gojekyll.git synced 2025-01-10 04:08:19 +01:00
gojekyll/site/site_test.go

17 lines
331 B
Go
Raw Normal View History

2017-07-04 15:09:36 +02:00
package site
2017-06-15 13:19:49 +02:00
import (
"testing"
2017-07-01 20:55:50 +02:00
"github.com/osteele/gojekyll/config"
"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-07-04 15:09:36 +02:00
s := New(config.Flags{})
2017-06-24 19:30:01 +02:00
require.Equal(t, "", s.PathPrefix())
require.False(t, s.KeepFile("random"))
2017-07-02 01:42:48 +02:00
require.True(t, s.KeepFile(".git"))
require.True(t, s.KeepFile(".svn"))
2017-06-15 13:19:49 +02:00
}