Remove FindUserChannels test
This commit is contained in:
parent
18651c1a10
commit
0a6d8bfb20
@ -63,20 +63,3 @@ func TestTopic(t *testing.T) {
|
||||
channelStore.SetTopic("the topic", "srv", "#chan")
|
||||
assert.Equal(t, "the topic", channelStore.GetTopic("srv", "#chan"))
|
||||
}
|
||||
|
||||
func TestFindUserChannels(t *testing.T) {
|
||||
channelStore := NewChannelStore()
|
||||
channelStore.AddUser("user", "srv", "#chan1")
|
||||
channelStore.AddUser("user", "srv", "#chan2")
|
||||
channelStore.AddUser("user2", "srv", "#chan3")
|
||||
channelStore.AddUser("user", "srv2", "#chan4")
|
||||
channelStore.AddUser("@gotop", "srv", "#chan1")
|
||||
|
||||
channels := channelStore.FindUserChannels("user", "srv")
|
||||
assert.Len(t, channels, 2)
|
||||
assert.Contains(t, channels, "#chan1")
|
||||
assert.Contains(t, channels, "#chan2")
|
||||
channels = channelStore.FindUserChannels("gotop", "srv")
|
||||
assert.Len(t, channels, 1)
|
||||
assert.Contains(t, channels, "#chan1")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user