Skip to content
Snippets Groups Projects
Commit 0d53e97e authored by Steffen Rauh's avatar Steffen Rauh
Browse files

Satisfied eslint

parent 0966c6d2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -225,7 +225,7 @@
 
// We extract pathname for the current Changes tab anchor href
// some pages like MergeRequestsController#new has query parameters on that anchor
var urlPathname = gl.utils.parseUrlPathname(source);
const urlPathname = gl.utils.parseUrlPathname(source);
 
this.ajaxGet({
url: `${urlPathname}.json${location.search}`,
Loading
Loading
Loading
Loading
@@ -29,7 +29,7 @@
 
describe('#activateTab', function () {
beforeEach(function () {
spyOn($, 'ajax').and.callFake(function() {});
spyOn($, 'ajax').and.callFake(function () {});
fixture.load('merge_request_tabs.html');
this.subject = this.class.activateTab;
});
Loading
Loading
@@ -53,7 +53,7 @@
 
describe('#setCurrentAction', function () {
beforeEach(function () {
spyOn($, 'ajax').and.callFake(function() {});
spyOn($, 'ajax').and.callFake(function () {});
this.subject = this.class.setCurrentAction;
});
it('changes from commits', function () {
Loading
Loading
@@ -110,9 +110,9 @@
expect(this.subject('show')).toBe('/foo/bar/merge_requests/1');
});
});
describe('#loadDiff', function() {
it('requires an absolute pathname', function() {
spyOn($, 'ajax').and.callFake(function(options) {
describe('#loadDiff', function () {
it('requires an absolute pathname', function () {
spyOn($, 'ajax').and.callFake(function (options) {
expect(options.url).toEqual('/foo/bar/merge_requests/1/diffs.json');
});
this.class.loadDiff('/foo/bar/merge_requests/1/diffs');
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment