diff options
author | Artur Neumann <info@individual-it.net> | 2017-02-28 08:25:34 +0545 |
---|---|---|
committer | Artur Neumann <info@individual-it.net> | 2017-02-28 08:25:34 +0545 |
commit | 9790fe7f5d349df4f56c427cf3559d004067eae5 (patch) | |
tree | 37d7dd5671bc3daef2f377134cc440542c80158e /core/js/tests | |
parent | f1fccaca0605a5d183f78b2c39d2e09a54753787 (diff) | |
download | nextcloud-server-9790fe7f5d349df4f56c427cf3559d004067eae5.tar.gz nextcloud-server-9790fe7f5d349df4f56c427cf3559d004067eae5.zip |
make values with white spaces possible
a user might enter values with white spaces, and that should be possible
and valid
Signed-off-by: Artur Neumann <info@individual-it.net>
Diffstat (limited to 'core/js/tests')
-rw-r--r-- | core/js/tests/specs/coreSpec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/tests/specs/coreSpec.js b/core/js/tests/specs/coreSpec.js index faafb4797be..c9e8a60f2f1 100644 --- a/core/js/tests/specs/coreSpec.js +++ b/core/js/tests/specs/coreSpec.js @@ -619,6 +619,13 @@ describe('Core base tests', function() { ['B', null], ['40/0', null], ['40,30 kb', null], + [' 122.1 MB ', 128031130], + ['122.1 MB ', 128031130], + [' 122.1 MB ', 128031130], + [' 122.1 MB ', 128031130], + ['122.1 MB ', 128031130], + [' 125', 125], + [' 125 ', 125], ]; for (var i = 0; i < data.length; i++) { expect(OC.Util.computerFileSize(data[i][0])).toEqual(data[i][1]); |