diff options
author | Fatih Acet <acetfatih@gmail.com> | 2019-04-16 01:28:20 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-04-16 01:28:20 +0300 |
commit | a1179e5e6022eddccffb26d680dcb544bd20416d (patch) | |
tree | 4af5b83e296299b9a4994c7aba14039d99bf438b /spec/javascripts/diffs | |
parent | 8c10e99de29f3c6f0d17ebde5af14324956dc109 (diff) |
Fix showing HTML content in view file tooltip
Diffstat (limited to 'spec/javascripts/diffs')
-rw-r--r-- | spec/javascripts/diffs/components/diff_file_header_spec.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/javascripts/diffs/components/diff_file_header_spec.js b/spec/javascripts/diffs/components/diff_file_header_spec.js index e1170c9762e..596a1ba5ad2 100644 --- a/spec/javascripts/diffs/components/diff_file_header_spec.js +++ b/spec/javascripts/diffs/components/diff_file_header_spec.js @@ -611,6 +611,9 @@ describe('diff_file_header', () => { vm = mountComponentWithStore(Component, { props, store }); expect(viewFileButton().getAttribute('href')).toBe('view-path'); + expect(viewFileButton().getAttribute('data-original-title')).toEqual( + `View file @ ${props.diffFile.content_sha.substr(0, 8)}`, + ); }); it('should not render external url view link if diff file has no external url', () => { |