diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-10-31 00:36:07 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-10-31 22:33:12 +0300 |
commit | 3d13d369f9a5c33466c8f5c99b79f92de5f85ba0 (patch) | |
tree | ba9f1503f137375174b8572c74a1b35fccb4d86a /spec/javascripts/sidebar | |
parent | 160157a92b4b0f493201a815e6e827e92abbf7c3 (diff) |
Fix eslint violations
Diffstat (limited to 'spec/javascripts/sidebar')
-rw-r--r-- | spec/javascripts/sidebar/assignees_spec.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/javascripts/sidebar/assignees_spec.js b/spec/javascripts/sidebar/assignees_spec.js index 6076fb07bc9..eced4925489 100644 --- a/spec/javascripts/sidebar/assignees_spec.js +++ b/spec/javascripts/sidebar/assignees_spec.js @@ -91,6 +91,7 @@ describe('Assignee component', () => { expect(assignee.querySelector('.avatar').getAttribute('alt')).toEqual( `${UsersMock.user.name}'s avatar`, ); + expect(assignee.querySelector('.author').innerText.trim()).toEqual(UsersMock.user.name); }); @@ -154,6 +155,7 @@ describe('Assignee component', () => { expect(first.querySelector('.avatar').getAttribute('alt')).toEqual( `${users[0].name}'s avatar`, ); + expect(first.querySelector('.author').innerText.trim()).toEqual(users[0].name); const second = collapsed.children[1]; @@ -162,6 +164,7 @@ describe('Assignee component', () => { expect(second.querySelector('.avatar').getAttribute('alt')).toEqual( `${users[1].name}'s avatar`, ); + expect(second.querySelector('.author').innerText.trim()).toEqual(users[1].name); }); @@ -185,6 +188,7 @@ describe('Assignee component', () => { expect(first.querySelector('.avatar').getAttribute('alt')).toEqual( `${users[0].name}'s avatar`, ); + expect(first.querySelector('.author').innerText.trim()).toEqual(users[0].name); const second = collapsed.children[1]; @@ -219,6 +223,7 @@ describe('Assignee component', () => { expect(component.$el.querySelectorAll('.user-item').length).toEqual( component.defaultRenderCount, ); + expect(component.$el.querySelector('.user-list-more')).not.toBe(null); const usersLabelExpectation = users.length - component.defaultRenderCount; |