From 5a0d41048868eddd709c6e9bb71a8c5243d239c0 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 28 Jul 2015 14:20:55 +0200 Subject: tests for _parseTime with hex and empty strings --- core/js/tests/specs/shareSpec.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/js/tests') diff --git a/core/js/tests/specs/shareSpec.js b/core/js/tests/specs/shareSpec.js index a8beb807ccc..3dc25134f59 100644 --- a/core/js/tests/specs/shareSpec.js +++ b/core/js/tests/specs/shareSpec.js @@ -1324,6 +1324,8 @@ describe('OC.Share tests', function() { [ 123456 , 123456], ['0123456', 123456], ['abcdefg', null], + ['0x12345', null], + [ '', null], ], function(value) { expect(OC.Share._parseTime(value[0])).toEqual(value[1]); }); -- cgit v1.2.3