diff options
author | Victor Wu <victor@gitlab.com> | 2019-04-16 20:21:56 +0000 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.m.gray@gmail.com> | 2019-04-16 20:21:56 +0000 |
commit | 79086edeefe6217c6ba41aa403404661c741f29f (patch) | |
tree | afc2a8971e9264d23c527ef8e306a27ca1b2ef29 /spec/javascripts/sidebar | |
parent | 232a8f75bb828a34bacd8a084e24420215ece009 (diff) | |
download | gitlab-ce-79086edeefe6217c6ba41aa403404661c741f29f.tar.gz |
`None` for assignees
Update assignees_spec.js
Update sidebar_spec.rb
Update issues_spec.rb
Diffstat (limited to 'spec/javascripts/sidebar')
-rw-r--r-- | spec/javascripts/sidebar/assignees_spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/javascripts/sidebar/assignees_spec.js b/spec/javascripts/sidebar/assignees_spec.js index 47fee5d2b21..4ae2141d5f0 100644 --- a/spec/javascripts/sidebar/assignees_spec.js +++ b/spec/javascripts/sidebar/assignees_spec.js @@ -24,12 +24,12 @@ describe('Assignee component', () => { const collapsed = component.$el.querySelector('.sidebar-collapsed-icon'); expect(collapsed.childElementCount).toEqual(1); - expect(collapsed.children[0].getAttribute('aria-label')).toEqual('No Assignee'); + expect(collapsed.children[0].getAttribute('aria-label')).toEqual('None'); expect(collapsed.children[0].classList.contains('fa')).toEqual(true); expect(collapsed.children[0].classList.contains('fa-user')).toEqual(true); }); - it('displays only "No assignee" when no users are assigned and the issue is read-only', () => { + it('displays only "None" when no users are assigned and the issue is read-only', () => { component = new AssigneeComponent({ propsData: { rootPath: 'http://localhost:3000', @@ -39,11 +39,11 @@ describe('Assignee component', () => { }).$mount(); const componentTextNoUsers = component.$el.querySelector('.assign-yourself').innerText.trim(); - expect(componentTextNoUsers).toBe('No assignee'); + expect(componentTextNoUsers).toBe('None'); expect(componentTextNoUsers.indexOf('assign yourself')).toEqual(-1); }); - it('displays only "No assignee" when no users are assigned and the issue can be edited', () => { + it('displays only "None" when no users are assigned and the issue can be edited', () => { component = new AssigneeComponent({ propsData: { rootPath: 'http://localhost:3000', @@ -53,7 +53,7 @@ describe('Assignee component', () => { }).$mount(); const componentTextNoUsers = component.$el.querySelector('.assign-yourself').innerText.trim(); - expect(componentTextNoUsers.indexOf('No assignee')).toEqual(0); + expect(componentTextNoUsers.indexOf('None')).toEqual(0); expect(componentTextNoUsers.indexOf('assign yourself')).toBeGreaterThan(0); }); |