Commit 83827b7d authored by Mike Greiling's avatar Mike Greiling

Fix eslint violations

parent 3cab2087
...@@ -70,8 +70,8 @@ export default { ...@@ -70,8 +70,8 @@ export default {
}, },
methods: { methods: {
deleteEpic() { deleteEpic() {
// eslint-disable-next-line no-alert
if (window.confirm(s__('Epic will be removed! Are you sure?'))) { if (window.confirm(s__('Epic will be removed! Are you sure?'))) {
// eslint-disable-line no-alert
this.deleteLoading = true; this.deleteLoading = true;
this.$emit('deleteEpic'); this.$emit('deleteEpic');
} }
......
...@@ -7,8 +7,8 @@ export default () => { ...@@ -7,8 +7,8 @@ export default () => {
if (el) { if (el) {
const props = el.dataset; const props = el.dataset;
// eslint-disable-next-line no-new
new Vue({ new Vue({
// eslint-disable-line no-new
el, el,
components: { components: {
'new-epic-app': NewEpicApp, 'new-epic-app': NewEpicApp,
......
...@@ -109,6 +109,7 @@ describe('epicSidebar', () => { ...@@ -109,6 +109,7 @@ describe('epicSidebar', () => {
expect( expect(
startDatePicker.querySelector('.value-type-fixed .value-content').innerText.trim(), startDatePicker.querySelector('.value-type-fixed .value-content').innerText.trim(),
).toEqual('Jan 1, 2017'); ).toEqual('Jan 1, 2017');
expect( expect(
endDatePicker.querySelector('.value-type-fixed .value-content').innerText.trim(), endDatePicker.querySelector('.value-type-fixed .value-content').innerText.trim(),
).toEqual('Jan 1, 2018'); ).toEqual('Jan 1, 2018');
......
...@@ -110,6 +110,7 @@ describe('SidebarParticipants', () => { ...@@ -110,6 +110,7 @@ describe('SidebarParticipants', () => {
expect(hrefContent).toContain( expect(hrefContent).toContain(
`${gon.gitlab_url}/help/user/group/epics/index.md#start-date-and-due-date`, `${gon.gitlab_url}/help/user/group/epics/index.md#start-date-and-due-date`,
); );
expect(hrefContent).toContain('More information'); expect(hrefContent).toContain('More information');
}); });
}); });
...@@ -125,6 +126,7 @@ describe('SidebarParticipants', () => { ...@@ -125,6 +126,7 @@ describe('SidebarParticipants', () => {
expect(hrefContent).toContain( expect(hrefContent).toContain(
`${gon.gitlab_url}/help/user/group/epics/index.md#start-date-and-due-date`, `${gon.gitlab_url}/help/user/group/epics/index.md#start-date-and-due-date`,
); );
expect(hrefContent).toContain('How can I solve this?'); expect(hrefContent).toContain('How can I solve this?');
}); });
}); });
......
...@@ -63,6 +63,7 @@ describe('GeoNodeEventStatus', () => { ...@@ -63,6 +63,7 @@ describe('GeoNodeEventStatus', () => {
expect(vm.$el.querySelector('strong').innerText.trim()).toBe( expect(vm.$el.querySelector('strong').innerText.trim()).toBe(
`${mockNodeDetails.lastEvent.id}`, `${mockNodeDetails.lastEvent.id}`,
); );
expect(vm.$el.querySelector('.event-status-timestamp').innerText).toContain('ago'); expect(vm.$el.querySelector('.event-status-timestamp').innerText).toContain('ago');
}); });
......
...@@ -66,6 +66,7 @@ describe('GeoNodeHealthStatusComponent', () => { ...@@ -66,6 +66,7 @@ describe('GeoNodeHealthStatusComponent', () => {
expect(iconContainerEl.querySelector('svg use').getAttribute('xlink:href')).toContain( expect(iconContainerEl.querySelector('svg use').getAttribute('xlink:href')).toContain(
'#status_success', '#status_success',
); );
expect(iconContainerEl.querySelector('.status-text').innerText.trim()).toBe('Healthy'); expect(iconContainerEl.querySelector('.status-text').innerText.trim()).toBe('Healthy');
vm.$destroy(); vm.$destroy();
}); });
......
...@@ -96,6 +96,7 @@ describe('GeoNodeSyncSettingsComponent', () => { ...@@ -96,6 +96,7 @@ describe('GeoNodeSyncSettingsComponent', () => {
expect(vm.statusTooltip(1000)).toBe( expect(vm.statusTooltip(1000)).toBe(
'Node is slow, overloaded, or it just recovered after an outage.', 'Node is slow, overloaded, or it just recovered after an outage.',
); );
expect(vm.statusTooltip(4000)).toBe('Node is failing or broken.'); expect(vm.statusTooltip(4000)).toBe('Node is failing or broken.');
}); });
}); });
......
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