mirror of
https://github.com/guoyk93/minit.git
synced 2025-12-24 12:37:54 +08:00
17 lines
331 B
Go
17 lines
331 B
Go
package menv
|
|
|
|
import (
|
|
"github.com/stretchr/testify/require"
|
|
"testing"
|
|
)
|
|
|
|
func TestBuild(t *testing.T) {
|
|
envs, err := Construct(map[string]string{
|
|
"HOME-": "NONE",
|
|
"MINIT_ENV_BUF": "{{stringsToUpper \"bbb\"}}",
|
|
})
|
|
require.NoError(t, err)
|
|
require.Equal(t, "", envs["HOME"])
|
|
require.Equal(t, "BBB", envs["BUF"])
|
|
}
|