mirror of
https://github.com/goreleaser/goreleaser.git
synced 2024-12-27 01:33:39 +02:00
test: fix static config test
This commit is contained in:
parent
c7f4e903e7
commit
65a945e82c
@ -8,9 +8,17 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestExampleConfig(t *testing.T) {
|
||||
cfg, err := config.LoadReader(bytes.NewReader(ExampleConfig))
|
||||
func TestGoExampleConfig(t *testing.T) {
|
||||
cfg, err := config.LoadReader(bytes.NewReader(GoExampleConfig))
|
||||
require.NoError(t, err)
|
||||
require.NotEmpty(t, ExampleConfig)
|
||||
require.NotEmpty(t, GoExampleConfig)
|
||||
require.Equal(t, 2, cfg.Version)
|
||||
}
|
||||
|
||||
func TestZigExampleConfig(t *testing.T) {
|
||||
cfg, err := config.LoadReader(bytes.NewReader(ZigExampleConfig))
|
||||
require.NoError(t, err)
|
||||
require.NotEmpty(t, ZigExampleConfig)
|
||||
require.Equal(t, 2, cfg.Version)
|
||||
require.Equal(t, "zig", cfg.Builds[0].Builder)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user