mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
APIv4 post /teams/search (#5931)
This commit is contained in:
committed by
Corey Hulen
parent
6b61834ab1
commit
43e795448f
19
model/team_search_test.go
Normal file
19
model/team_search_test.go
Normal file
@@ -0,0 +1,19 @@
|
||||
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestTeamSearchJson(t *testing.T) {
|
||||
teamSearch := TeamSearch{Term: NewId()}
|
||||
json := teamSearch.ToJson()
|
||||
rteamSearch := ChannelSearchFromJson(strings.NewReader(json))
|
||||
|
||||
if teamSearch.Term != rteamSearch.Term {
|
||||
t.Fatal("Terms do not match")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user