mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
19 lines
481 B
Go
19 lines
481 B
Go
package config
|
|
|
|
import (
|
|
"testing"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestFixConfig(t *testing.T) {
|
|
assert := assert.New(t)
|
|
config := fix(ProjectConfig{})
|
|
assert.Equal("main.go", config.Main)
|
|
assert.Contains(config.Files, "README.md")
|
|
assert.Contains(config.Files, "LICENSE.md")
|
|
assert.Contains(config.Build.Oses, "darwin")
|
|
assert.Contains(config.Build.Oses, "linux")
|
|
assert.Contains(config.Build.Arches, "386")
|
|
assert.Contains(config.Build.Arches, "amd64")
|
|
}
|