mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Renaming team.Name to team.DisplayName and team.Domain to team.Name. So: team.Name -> url safe name. team.DisplayName -> nice name for users
21 lines
422 B
Go
21 lines
422 B
Go
// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
package model
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestTeamSignupJson(t *testing.T) {
|
|
team := Team{Id: NewId(), DisplayName: NewId()}
|
|
o := TeamSignup{Team: team, Data: "data"}
|
|
json := o.ToJson()
|
|
ro := TeamSignupFromJson(strings.NewReader(json))
|
|
|
|
if o.Team.Id != ro.Team.Id {
|
|
t.Fatal("Ids do not match")
|
|
}
|
|
}
|