Add test for unparseable string

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Patrick Paysant 2016-12-07 11:05:07 +01:00 committed by Lukas Reschke
parent ff018d48cf
commit ec4bca619d
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 2 additions and 1 deletions

View File

@ -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]);