mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-06 03:13:48 +02:00
d84738094d
closes #4914
17 lines
337 B
Go
17 lines
337 B
Go
package static
|
|
|
|
import (
|
|
"bytes"
|
|
"testing"
|
|
|
|
"github.com/goreleaser/goreleaser/v2/pkg/config"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestExampleConfig(t *testing.T) {
|
|
cfg, err := config.LoadReader(bytes.NewReader(ExampleConfig))
|
|
require.NoError(t, err)
|
|
require.NotEmpty(t, ExampleConfig)
|
|
require.Equal(t, 2, cfg.Version)
|
|
}
|