Commit b210cbca authored by Filipa Lacerda's avatar Filipa Lacerda

Fix eslint errors

Fix rubocop error
parent 9a8fa8e0
/*= require vue /*= require vue */
/* global Vue */ /* global Vue */
(() => { (() => {
......
/*= require vue /*= require vue */
/* global Vue */ /* global Vue */
(() => { (() => {
......
/*= require lib/utils/timeago /*= require lib/utils/timeago */
/*= require lib/utils/text_utility /*= require lib/utils/text_utility */
/*= require vue_common_component/commit /*= require vue_common_component/commit */
/*= require ./environment_actions /*= require ./environment_actions */
/*= require ./environment_external_url /*= require ./environment_external_url */
/*= require ./environment_stop /*= require ./environment_stop */
/*= require ./environment_rollback /*= require ./environment_rollback */
/* globals Vue, timeago */ /* globals Vue, timeago */
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
* Recursive component based on [Tree View](https://vuejs.org/examples/tree-view.html) * Recursive component based on [Tree View](https://vuejs.org/examples/tree-view.html)
* *
* See this [issue](https://gitlab.com/gitlab-org/gitlab-ce/issues/22539) * See this [issue](https://gitlab.com/gitlab-org/gitlab-ce/issues/22539)
* for more information. * for more information.15
*/ */
window.gl = window.gl || {}; window.gl = window.gl || {};
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
* @returns {String} * @returns {String}
*/ */
createdDate() { createdDate() {
const timeagoInstance = new timeago(); const timeagoInstance = new timeago(); // eslint-disable-line
return timeagoInstance.format(this.model.created_at); return timeagoInstance.format(this.model.created_at);
}, },
......
/*= require vue /*= require vue */
/* global Vue */ /* global Vue */
(() => { (() => {
......
/*= require vue /*= require vue */
/* global Vue */ /* global Vue */
(() => { (() => {
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
methods: { methods: {
openConfirmDialog() { openConfirmDialog() {
return window.confirm('Are you sure you want to stop this environment?'); return window.confirm('Are you sure you want to stop this environment?'); // eslint-disable-line
}, },
}, },
......
/* eslint-disable */ /* global Vue */
Vue.http.interceptors.push((request, next) => { Vue.http.interceptors.push((request, next) => {
Vue.activeResources = Vue.activeResources ? Vue.activeResources + 1 : 1; Vue.activeResources = Vue.activeResources ? Vue.activeResources + 1 : 1;
next(function (response) { next((response) => {
if (typeof response.data === "string") { if (typeof response.data === 'string') {
response.data = JSON.parse(response.data) response.data = JSON.parse(response.data); // eslint-disable-line
} }
Vue.activeResources--; Vue.activeResources--; // eslint-disable-line
}); });
}); });
/*= require vue /*= require vue */
/* global Vue */ /* global Vue */
(() => { (() => {
window.gl = window.gl || {}; window.gl = window.gl || {};
......
require 'spec_helper' require 'spec_helper'
feature 'Environments', feature: true, js:true do feature 'Environments', feature: true, js: true do
given(:project) { create(:empty_project) } given(:project) { create(:empty_project) }
given(:user) { create(:user) } given(:user) { create(:user) }
given(:role) { :developer } given(:role) { :developer }
......
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