summaryrefslogtreecommitdiffstats
path: root/core/js/tests
diff options
context:
space:
mode:
authorPatrick Paysant <patrick.paysant@linagora.com>2016-12-07 11:05:07 +0100
committerLukas Reschke <lukas@statuscode.ch>2016-12-19 17:29:13 +0100
commitec4bca619d7cd57271262928b1fe06d5f8dc3211 (patch)
tree2ce57092d7860429091c0b66b36d8d6943565865 /core/js/tests
parentff018d48cfda1ff0454dc49d48dd0b7cf98e13cc (diff)
downloadnextcloud-server-ec4bca619d7cd57271262928b1fe06d5f8dc3211.tar.gz
nextcloud-server-ec4bca619d7cd57271262928b1fe06d5f8dc3211.zip
Add test for unparseable string
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'core/js/tests')
-rw-r--r--core/js/tests/specs/coreSpec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js/tests/specs/coreSpec.js b/core/js/tests/specs/coreSpec.js
index 2960d1d7d23..39060f4e473 100644
--- a/core/js/tests/specs/coreSpec.js
+++ b/core/js/tests/specs/coreSpec.js
@@ -603,7 +603,8 @@ describe('Core base tests', function() {
['119.2 GB', 127990025421],
['119.2gb', 127990025421],
['116.4 TB', 127983153473126],
- ['116.4tb', 127983153473126]
+ ['116.4tb', 127983153473126],
+ ['foobar', null]
];
for (var i = 0; i < data.length; i++) {
expect(OC.Util.computerFileSize(data[i][0])).toEqual(data[i][1]);