aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-07-10 15:31:58 +0200
committerVincent Petry <pvince81@owncloud.com>2015-07-10 15:31:58 +0200
commitfbc03b43b900d8657a865e447a471687342c4ce7 (patch)
treed8e2001350fbc6606afdc83d0d4089f03ac3b294 /core/js
parent119e27166e69d70e7fee697fe1a6b7c2f0839ece (diff)
downloadnextcloud-server-fbc03b43b900d8657a865e447a471687342c4ce7.tar.gz
nextcloud-server-fbc03b43b900d8657a865e447a471687342c4ce7.zip
More tests for joinPaths
Diffstat (limited to 'core/js')
-rw-r--r--core/js/tests/specs/coreSpec.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/js/tests/specs/coreSpec.js b/core/js/tests/specs/coreSpec.js
index 5caaf109bf1..7a09f362ee5 100644
--- a/core/js/tests/specs/coreSpec.js
+++ b/core/js/tests/specs/coreSpec.js
@@ -162,6 +162,9 @@ describe('Core base tests', function() {
expect(OC.joinPaths('//abc//', '//def//', '//ghi//')).toEqual('/abc/def/ghi/');
expect(OC.joinPaths('//abc//def//', '//ghi//jkl/mno/', '//pqr//'))
.toEqual('/abc/def/ghi/jkl/mno/pqr/');
+ expect(OC.joinPaths('/abc', '/def')).toEqual('/abc/def');
+ expect(OC.joinPaths('/abc/', '/def')).toEqual('/abc/def');
+ expect(OC.joinPaths('/abc/', 'def')).toEqual('/abc/def');
});
it('discards empty sections', function() {
expect(OC.joinPaths('abc', '', 'def')).toEqual('abc/def');