mirror of
https://github.com/danog/gojekyll.git
synced 2024-12-02 16:27:46 +01:00
22 lines
424 B
Go
22 lines
424 B
Go
package config
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestDefaultConfig(t *testing.T) {
|
|
c := Default()
|
|
require.Equal(t, ".", c.Source)
|
|
require.Equal(t, "./_site", c.Destination)
|
|
require.Equal(t, "_layouts", c.LayoutsDir)
|
|
}
|
|
|
|
func TestUnmarshal(t *testing.T) {
|
|
c := Default()
|
|
Unmarshal([]byte(`source: x`), &c)
|
|
require.Equal(t, "x", c.Source)
|
|
require.Equal(t, "./_site", c.Destination)
|
|
}
|