mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-30 22:38:39 -04:00
Add extra checks to duration filter.
This commit is contained in:
parent
5ebd004a10
commit
d4f6d65e1d
2 changed files with 8 additions and 0 deletions
|
@ -285,6 +285,11 @@ describe('duration filter', function() {
|
|||
var output = durationFilter(1000*60*60*2 + 1000*60*35);
|
||||
expect(output).toEqual("2h");
|
||||
});
|
||||
|
||||
it("should represent -ve numbers as '0s'", function() {
|
||||
var output = durationFilter(-2000);
|
||||
expect(output).toEqual("0s");
|
||||
});
|
||||
});
|
||||
|
||||
describe('orderMembersList filter', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue