summaryrefslogtreecommitdiff
path: root/spec/javascripts/notes_spec.js
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-08-10 16:48:22 +0100
committerFilipa Lacerda <filipa@gitlab.com>2017-08-10 16:48:22 +0100
commitd323bb79ebc84751cc0a27e99db7ae1c2ec64fd8 (patch)
tree71ef8b4d6f9c182137e9ac836afbc67a6c7f34de /spec/javascripts/notes_spec.js
parent3008e9956222b8765ec2d7852c61da19a3933c8f (diff)
downloadgitlab-ce-d323bb79ebc84751cc0a27e99db7ae1c2ec64fd8.tar.gz
Change fixtures of old tests
Diffstat (limited to 'spec/javascripts/notes_spec.js')
-rw-r--r--spec/javascripts/notes_spec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/javascripts/notes_spec.js b/spec/javascripts/notes_spec.js
index 2c096ed08a8..bd01d823e68 100644
--- a/spec/javascripts/notes_spec.js
+++ b/spec/javascripts/notes_spec.js
@@ -30,16 +30,16 @@ import '~/notes';
return escapedString;
};
- describe('Notes', function() {
+ fdescribe('Notes', function() {
const FLASH_TYPE_ALERT = 'alert';
- var commentsTemplate = 'issues/issue_with_comment.html.raw';
+ var commentsTemplate = 'merge_requests/merge_request_with_comment.html.raw';
preloadFixtures(commentsTemplate);
beforeEach(function () {
loadFixtures(commentsTemplate);
gl.utils.disableButtonIfEmptyField = _.noop;
window.project_uploads_path = 'http://test.host/uploads';
- $('body').data('page', 'projects:issues:show');
+ $('body').data('page', 'projects:merge_requets:show');
});
describe('task lists', function() {
@@ -60,7 +60,7 @@ import '~/notes';
it('submits an ajax request on tasklist:changed', function() {
spyOn(jQuery, 'ajax').and.callFake(function(req) {
expect(req.type).toBe('PATCH');
- expect(req.url).toBe('http://test.host/frontend-fixtures/issues-project/notes/1');
+ expect(req.url).toBe('http://test.host/frontend-fixtures/merge-requests-project/notes/3');
return expect(req.data.note).not.toBe(null);
});
$('.js-task-list-field').trigger('tasklist:changed');