diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-07-10 15:31:58 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-07-10 15:31:58 +0200 |
commit | fbc03b43b900d8657a865e447a471687342c4ce7 (patch) | |
tree | d8e2001350fbc6606afdc83d0d4089f03ac3b294 /core/js | |
parent | 119e27166e69d70e7fee697fe1a6b7c2f0839ece (diff) | |
download | nextcloud-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.js | 3 |
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'); |