summaryrefslogtreecommitdiffstats
path: root/apps/comments
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-17 11:46:11 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-17 11:48:26 +0200
commit0d964787581b8505556889aaa3e05ad83d3482a2 (patch)
tree9f5eb85e3c638955efad7cefa875d07b2972803e /apps/comments
parent252ddcc1a43012f0984fc0ba7cdccae941ef67dc (diff)
downloadnextcloud-server-0d964787581b8505556889aaa3e05ad83d3482a2.tar.gz
nextcloud-server-0d964787581b8505556889aaa3e05ad83d3482a2.zip
Fix js unit test
Diffstat (limited to 'apps/comments')
-rw-r--r--apps/comments/tests/js/commentstabviewSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/comments/tests/js/commentstabviewSpec.js b/apps/comments/tests/js/commentstabviewSpec.js
index 70930da7520..33c959e430f 100644
--- a/apps/comments/tests/js/commentstabviewSpec.js
+++ b/apps/comments/tests/js/commentstabviewSpec.js
@@ -328,12 +328,12 @@ describe('OCA.Comments.CommentsTabView tests', function() {
var $formRow = view.$el.find('.newCommentRow.comment[data-id=1]');
expect($formRow.length).toEqual(1);
- $formRow.find('textarea').val('modified\nmessage');
+ $formRow.find('input').val('modified message');
$formRow.find('form').submit();
expect(saveStub.calledOnce).toEqual(true);
expect(saveStub.lastCall.args[0]).toEqual({
- message: 'modified\nmessage'
+ message: 'modified message'
});
var model = view.collection.get(1);