mirror of
https://github.com/danog/gojekyll.git
synced 2024-12-12 11:57:20 +01:00
17 lines
331 B
Go
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"))
|
|
}
|