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

Fix eslint violations

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