Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug : Inbox Filter indicator is removed when a conversation is select…
…ed (#535)
- Loading branch information
1 parent
bc884ae
commit 330bf87
Showing
6 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { frontendURL, conversationUrl } from '../URLHelper'; | ||
|
||
describe('#URL Helpers', () => { | ||
describe('conversationUrl', () => { | ||
it('should return direct conversation URL if activeInbox is nil', () => { | ||
expect(conversationUrl(undefined, 1)).toBe('conversations/1'); | ||
}); | ||
it('should return ibox conversation URL if activeInbox is not nil', () => { | ||
expect(conversationUrl(2, 1)).toBe('inbox/2/conversations/1'); | ||
}); | ||
}); | ||
|
||
describe('frontendURL', () => { | ||
it('should return url without params if params passed is nil', () => { | ||
expect(frontendURL('main', null)).toBe('/app/main'); | ||
}); | ||
it('should return url without params if params passed is not nil', () => { | ||
expect(frontendURL('main', { ping: 'pong' })).toBe('/app/main?ping=pong'); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters