15 lines
383 B
Go
15 lines
383 B
Go
package api
|
|
|
|
import (
|
|
"testing"
|
|
|
|
hub "git.ipao.vip/rogee/creator-hub/internal/environment"
|
|
)
|
|
|
|
func TestAccountEnvironmentViewPreservesDatabaseOrderingID(t *testing.T) {
|
|
view := accountEnvironmentView(hub.EnvironmentContext{Env: hub.Env{ID: 42, Alias: "env-order"}})
|
|
if view["id"] != int64(42) {
|
|
t.Fatalf("account environment is missing its shared ordering ID: %#v", view)
|
|
}
|
|
}
|