Fix getSortedChannels test

This commit is contained in:
Ken-Håvard Lieng 2019-02-08 08:56:21 +01:00
parent fad2e030d4
commit 4eda7ef396

View File

@ -330,18 +330,35 @@ describe('getSortedChannels', () => {
'bob.com': {},
'127.0.0.1': {
'#chan1': {
name: '#chan1',
users: [],
topic: 'cake'
},
'#pie': {},
'##apples': {}
'#pie': {
name: '#pie'
},
'##apples': {
name: '##apples'
}
}
}
})
).toEqual([
{
address: '127.0.0.1',
channels: ['##apples', '#chan1', '#pie']
channels: [
{
name: '##apples'
},
{
name: '#chan1',
users: [],
topic: 'cake'
},
{
name: '#pie'
}
]
},
{
address: 'bob.com',