mirror of
https://github.com/screego/server.git
synced 2026-04-22 23:47:03 +08:00
18 lines
227 B
Go
18 lines
227 B
Go
package mode
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/magiconair/properties/assert"
|
|
)
|
|
|
|
func TestGet(t *testing.T) {
|
|
mode = Prod
|
|
assert.Equal(t, Prod, Get())
|
|
}
|
|
|
|
func TestSet(t *testing.T) {
|
|
Set(Prod)
|
|
assert.Equal(t, Prod, mode)
|
|
}
|