mirror of
https://github.com/screego/server.git
synced 2025-12-24 12:57:51 +08:00
18 lines
225 B
Go
18 lines
225 B
Go
package mode
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGet(t *testing.T) {
|
|
mode = Prod
|
|
require.Equal(t, Prod, Get())
|
|
}
|
|
|
|
func TestSet(t *testing.T) {
|
|
Set(Prod)
|
|
require.Equal(t, Prod, mode)
|
|
}
|