diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-08-26 11:39:22 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-08-26 11:39:22 +0200 |
commit | 202af1e3229278abde5dd4597917ff3c390d5f6f (patch) | |
tree | b7dd337d7852715691aa1be079d9847f0d8e69ac /core/js | |
parent | c11ea056d06be7859071eb3176462a9d4d56964e (diff) | |
download | nextcloud-server-202af1e3229278abde5dd4597917ff3c390d5f6f.tar.gz nextcloud-server-202af1e3229278abde5dd4597917ff3c390d5f6f.zip |
fix unit tests
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/tests/specs/shareSpec.js | 4 |
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)) { |