summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-08-26 11:39:22 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-08-26 11:39:22 +0200
commit202af1e3229278abde5dd4597917ff3c390d5f6f (patch)
treeb7dd337d7852715691aa1be079d9847f0d8e69ac /core/js
parentc11ea056d06be7859071eb3176462a9d4d56964e (diff)
downloadnextcloud-server-202af1e3229278abde5dd4597917ff3c390d5f6f.tar.gz
nextcloud-server-202af1e3229278abde5dd4597917ff3c390d5f6f.zip
fix unit tests
Diffstat (limited to 'core/js')
-rw-r--r--core/js/tests/specs/shareSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/tests/specs/shareSpec.js b/core/js/tests/specs/shareSpec.js
index 3dc25134f59..5a59a117d77 100644
--- a/core/js/tests/specs/shareSpec.js
+++ b/core/js/tests/specs/shareSpec.js
@@ -1132,7 +1132,7 @@ describe('OC.Share tests', function() {
OC.Share.markFileAsShared($file);
$action = $file.find('.action-share>span');
- expect($action.text()).toEqual(output);
+ expect($action.text().trim()).toEqual(output);
if (_.isString(title)) {
expect($action.find('.remoteAddress').attr('title')).toEqual(title);
} else {
@@ -1236,7 +1236,7 @@ describe('OC.Share tests', function() {
OC.Share.markFileAsShared($file, true);
$action = $file.find('.action-share>span');
- expect($action.text()).toEqual(output);
+ expect($action.text().trim()).toEqual(output);
if (_.isString(title)) {
expect($action.find('.remoteAddress').attr('title')).toEqual(title);
} else if (_.isArray(title)) {