diff options
Diffstat (limited to 'syweb/webclient/test')
-rw-r--r-- | syweb/webclient/test/unit/filters.spec.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/syweb/webclient/test/unit/filters.spec.js b/syweb/webclient/test/unit/filters.spec.js index e8944cbfc2..fe31da709b 100644 --- a/syweb/webclient/test/unit/filters.spec.js +++ b/syweb/webclient/test/unit/filters.spec.js @@ -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() { |