diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2018-07-05 15:02:56 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-07-05 15:02:56 +0300 |
commit | 6d291cc3a6b5e5b7100fc6a4838430df42e89ea3 (patch) | |
tree | 06767a36091815f7fa61e9ff886a53afb5e0ca8b /spec/javascripts/diffs/components/diff_file_header_spec.js | |
parent | afb9327dac1b6a04bc62148139a59235a4dac1cb (diff) |
File Icons in Merge Requests
Diffstat (limited to 'spec/javascripts/diffs/components/diff_file_header_spec.js')
-rw-r--r-- | spec/javascripts/diffs/components/diff_file_header_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/javascripts/diffs/components/diff_file_header_spec.js b/spec/javascripts/diffs/components/diff_file_header_spec.js index d0f1700bee6..05f5d47ce42 100644 --- a/spec/javascripts/diffs/components/diff_file_header_spec.js +++ b/spec/javascripts/diffs/components/diff_file_header_spec.js @@ -280,11 +280,11 @@ describe('diff_file_header', () => { }); }); - it('displays an icon in the title', () => { + it('displays an file icon in the title', () => { vm = mountComponent(Component, props); - - const icon = vm.$el.querySelector(`i[class="fa fa-fw fa-${vm.icon}"]`); - expect(icon).not.toBe(null); + expect(vm.$el.querySelector('svg.js-file-icon use').getAttribute('xlink:href')).toContain( + 'ruby', + ); }); describe('file paths', () => { |