Fix js unit test

This commit is contained in:
Roeland Jago Douma 2016-08-17 11:46:11 +02:00
parent 252ddcc1a4
commit 0d96478758
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 2 additions and 2 deletions

View File

@ -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);