diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-02-12 18:34:54 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-02-12 18:34:54 +0100 |
commit | dfcd4acd5aebfa3476c58c652bbf5545d3882217 (patch) | |
tree | cd16206197177000bc9ed776fbe63f2e18bdba36 /core/js/tests | |
parent | bd5440a8a38e7960a382866a233ed313663fe50f (diff) | |
parent | ccc1f096273b81ba29ef2dfbfad6baaf7ecd0082 (diff) | |
download | nextcloud-server-dfcd4acd5aebfa3476c58c652bbf5545d3882217.tar.gz nextcloud-server-dfcd4acd5aebfa3476c58c652bbf5545d3882217.zip |
Merge pull request #13771 from owncloud/fix-humanfileSize
generate valid human readable text for 0
Diffstat (limited to 'core/js/tests')
-rw-r--r-- | core/js/tests/specs/coreSpec.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/js/tests/specs/coreSpec.js b/core/js/tests/specs/coreSpec.js index d283839d7e7..159c3743662 100644 --- a/core/js/tests/specs/coreSpec.js +++ b/core/js/tests/specs/coreSpec.js @@ -465,6 +465,8 @@ describe('Core base tests', function() { it('renders file sizes with the correct unit', function() { var data = [ [0, '0 B'], + ["0", '0 B'], + ["A", 'NaN B'], [125, '125 B'], [128000, '125 kB'], [128000000, '122.1 MB'], |