Commit 0d53e97e authored by Steffen Rauh's avatar Steffen Rauh

Satisfied eslint

parent 0966c6d2
......@@ -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}`,
......
......@@ -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;
});
......@@ -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 () {
......@@ -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');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment