1
0
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:
Carlos Alexandro Becker 2024-11-28 22:57:44 -03:00
parent c7f4e903e7
commit 65a945e82c
No known key found for this signature in database

View File

@ -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)
}