Commit 3d13d369 authored by Mike Greiling's avatar Mike Greiling

Fix eslint violations

parent 160157a9
...@@ -569,8 +569,8 @@ GfmAutoComplete.Members = { ...@@ -569,8 +569,8 @@ GfmAutoComplete.Members = {
template: '<li>${avatarTag} ${username} <small>${title}</small></li>', template: '<li>${avatarTag} ${username} <small>${title}</small></li>',
}; };
GfmAutoComplete.Labels = { GfmAutoComplete.Labels = {
// eslint-disable-next-line no-template-curly-in-string
template: template:
// eslint-disable-next-line no-template-curly-in-string
'<li><span class="dropdown-label-box" style="background: ${color}"></span> ${title}</li>', '<li><span class="dropdown-label-box" style="background: ${color}"></span> ${title}</li>',
}; };
// Issues, MergeRequests and Snippets // Issues, MergeRequests and Snippets
......
...@@ -183,6 +183,7 @@ describe('common_utils', () => { ...@@ -183,6 +183,7 @@ describe('common_utils', () => {
scope: 'all', scope: 'all',
page: '2', page: '2',
}); });
expect(commonUtils.parseQueryStringIntoObject('scope=all')).toEqual({ scope: 'all' }); expect(commonUtils.parseQueryStringIntoObject('scope=all')).toEqual({ scope: 'all' });
expect(commonUtils.parseQueryStringIntoObject()).toEqual({}); expect(commonUtils.parseQueryStringIntoObject()).toEqual({});
}); });
......
...@@ -91,6 +91,7 @@ describe('Assignee component', () => { ...@@ -91,6 +91,7 @@ describe('Assignee component', () => {
expect(assignee.querySelector('.avatar').getAttribute('alt')).toEqual( expect(assignee.querySelector('.avatar').getAttribute('alt')).toEqual(
`${UsersMock.user.name}'s avatar`, `${UsersMock.user.name}'s avatar`,
); );
expect(assignee.querySelector('.author').innerText.trim()).toEqual(UsersMock.user.name); expect(assignee.querySelector('.author').innerText.trim()).toEqual(UsersMock.user.name);
}); });
...@@ -154,6 +155,7 @@ describe('Assignee component', () => { ...@@ -154,6 +155,7 @@ describe('Assignee component', () => {
expect(first.querySelector('.avatar').getAttribute('alt')).toEqual( expect(first.querySelector('.avatar').getAttribute('alt')).toEqual(
`${users[0].name}'s avatar`, `${users[0].name}'s avatar`,
); );
expect(first.querySelector('.author').innerText.trim()).toEqual(users[0].name); expect(first.querySelector('.author').innerText.trim()).toEqual(users[0].name);
const second = collapsed.children[1]; const second = collapsed.children[1];
...@@ -162,6 +164,7 @@ describe('Assignee component', () => { ...@@ -162,6 +164,7 @@ describe('Assignee component', () => {
expect(second.querySelector('.avatar').getAttribute('alt')).toEqual( expect(second.querySelector('.avatar').getAttribute('alt')).toEqual(
`${users[1].name}'s avatar`, `${users[1].name}'s avatar`,
); );
expect(second.querySelector('.author').innerText.trim()).toEqual(users[1].name); expect(second.querySelector('.author').innerText.trim()).toEqual(users[1].name);
}); });
...@@ -185,6 +188,7 @@ describe('Assignee component', () => { ...@@ -185,6 +188,7 @@ describe('Assignee component', () => {
expect(first.querySelector('.avatar').getAttribute('alt')).toEqual( expect(first.querySelector('.avatar').getAttribute('alt')).toEqual(
`${users[0].name}'s avatar`, `${users[0].name}'s avatar`,
); );
expect(first.querySelector('.author').innerText.trim()).toEqual(users[0].name); expect(first.querySelector('.author').innerText.trim()).toEqual(users[0].name);
const second = collapsed.children[1]; const second = collapsed.children[1];
...@@ -219,6 +223,7 @@ describe('Assignee component', () => { ...@@ -219,6 +223,7 @@ describe('Assignee component', () => {
expect(component.$el.querySelectorAll('.user-item').length).toEqual( expect(component.$el.querySelectorAll('.user-item').length).toEqual(
component.defaultRenderCount, component.defaultRenderCount,
); );
expect(component.$el.querySelector('.user-list-more')).not.toBe(null); expect(component.$el.querySelector('.user-list-more')).not.toBe(null);
const usersLabelExpectation = users.length - component.defaultRenderCount; const usersLabelExpectation = users.length - component.defaultRenderCount;
......
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