mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
17 lines
267 B
Go
17 lines
267 B
Go
package config
|
|
|
|
import (
|
|
"testing"
|
|
|
|
yaml "gopkg.in/yaml.v1"
|
|
)
|
|
|
|
func TestDefaultConfig(t *testing.T) {
|
|
cfg := DefaultConfig()
|
|
config := Project{}
|
|
|
|
if err := yaml.Unmarshal([]byte(cfg), &config); err != nil {
|
|
t.Errorf("Not a valid config. %s", err.Error())
|
|
}
|
|
}
|