mirror of
https://github.com/AthanorLabs/atomic-swap.git
synced 2026-01-09 14:18:03 -05:00
20 lines
489 B
Go
20 lines
489 B
Go
// Copyright 2023 The AthanorLabs/atomic-swap Authors
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
|
|
|
package common
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestConfigDefaultsForEnv(t *testing.T) {
|
|
for _, env := range []Environment{Development, Stagenet, Mainnet} {
|
|
conf := ConfigDefaultsForEnv(env)
|
|
require.Equal(t, env, conf.Env)
|
|
// testing for pointer inequality, each call returns a new instance
|
|
require.True(t, conf != ConfigDefaultsForEnv(env))
|
|
}
|
|
}
|