aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/tests/specs/coreSpec.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-07-23 12:52:13 +0200
committerVincent Petry <pvince81@owncloud.com>2014-08-11 13:28:53 +0200
commitf2001a48a4e91bc6427a2a63ba9022ceaf1d305d (patch)
treedf745410cd8b080c163762e912c750717a0e0f3e /core/js/tests/specs/coreSpec.js
parent173059f6d00faa06dab9188efb2d7536f15861e4 (diff)
downloadnextcloud-server-f2001a48a4e91bc6427a2a63ba9022ceaf1d305d.tar.gz
nextcloud-server-f2001a48a4e91bc6427a2a63ba9022ceaf1d305d.zip
Fixed sort algo for additional cases
Diffstat (limited to 'core/js/tests/specs/coreSpec.js')
-rw-r--r--core/js/tests/specs/coreSpec.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/js/tests/specs/coreSpec.js b/core/js/tests/specs/coreSpec.js
index 265b9deac39..6d40a066de8 100644
--- a/core/js/tests/specs/coreSpec.js
+++ b/core/js/tests/specs/coreSpec.js
@@ -531,10 +531,14 @@ describe('Core base tests', function() {
'za',
'ghi 1.txt',
'ghi 12.txt',
- 'zz'
+ 'zz',
+ '15.txt',
+ '15b.txt'
];
a.sort(OC.Util.naturalSortCompare);
expect(a).toEqual([
+ '15.txt',
+ '15b.txt',
'123.txt',
'124.txt',
'abc',