diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-02 21:06:22 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-02 21:06:22 +0000 |
commit | 6d60f910762c1a92a07a4afaf1b26962f75ee4b6 (patch) | |
tree | 0a9ef6ccb20aa2099df33a409723eb912f8029e3 /spec/javascripts/vue_shared | |
parent | de2ae3154f4ba1c23eeaa4ace41177ecd9b6005a (diff) | |
download | gitlab-ce-6d60f910762c1a92a07a4afaf1b26962f75ee4b6.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/javascripts/vue_shared')
-rw-r--r-- | spec/javascripts/vue_shared/components/icon_spec.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/javascripts/vue_shared/components/icon_spec.js b/spec/javascripts/vue_shared/components/icon_spec.js index 45eef2ad737..7390798afa8 100644 --- a/spec/javascripts/vue_shared/components/icon_spec.js +++ b/spec/javascripts/vue_shared/components/icon_spec.js @@ -12,8 +12,6 @@ describe('Sprite Icon Component', function() { icon = mountComponent(IconComponent, { name: 'commit', size: 32, - cssClasses: 'extraclasses', - tabIndex: '0', }); }); @@ -47,10 +45,8 @@ describe('Sprite Icon Component', function() { it('should properly render img css', function() { const { classList } = icon.$el; const containsSizeClass = classList.contains('s32'); - const containsCustomClass = classList.contains('extraclasses'); expect(containsSizeClass).toBe(true); - expect(containsCustomClass).toBe(true); }); it('`name` validator should return false for non existing icons', () => { @@ -60,9 +56,5 @@ describe('Sprite Icon Component', function() { it('`name` validator should return false for existing icons', () => { expect(Icon.props.name.validator('commit')).toBe(true); }); - - it('should contain `tabindex` attribute on svg element when `tabIndex` prop is defined', () => { - expect(icon.$el.getAttribute('tabindex')).toBe('0'); - }); }); }); |