diff options
author | Phil Hughes <me@iamphill.com> | 2017-04-26 10:09:07 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-27 12:23:27 -0500 |
commit | 95658fb62a955a40260d5b7c4ccd51ce72ae1fb9 (patch) | |
tree | 6f8f5be3b4f9d1a070b31a8fc29e5404300ff5dd /spec/javascripts/blob | |
parent | dc4726f0a707019c64e60e58d45bb647a43d4ec8 (diff) | |
download | gitlab-ce-95658fb62a955a40260d5b7c4ccd51ce72ae1fb9.tar.gz |
Fixed failing JS tests
Diffstat (limited to 'spec/javascripts/blob')
-rw-r--r-- | spec/javascripts/blob/viewer/index_spec.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/javascripts/blob/viewer/index_spec.js b/spec/javascripts/blob/viewer/index_spec.js index fe45ee3c083..2031898cf54 100644 --- a/spec/javascripts/blob/viewer/index_spec.js +++ b/spec/javascripts/blob/viewer/index_spec.js @@ -1,7 +1,7 @@ /* eslint-disable no-new */ import BlobViewer from '~/blob/viewer/index'; -describe('Blob viewer', () => { +fdescribe('Blob viewer', () => { preloadFixtures('blob/show.html.raw'); beforeEach(() => { @@ -74,6 +74,10 @@ describe('Blob viewer', () => { ).toBe('true'); done(); + }) + .catch(() => { + fail(); + done(); }); }); @@ -87,7 +91,7 @@ describe('Blob viewer', () => { it('has tooltip when disabled', () => { expect( document.querySelector('.js-copy-blob-source-btn').getAttribute('data-original-title'), - ).toBe('Switch to the source view to copy the source to the clipboard'); + ).toBe('Switch to the source to copy it to the clipboard'); }); it('enables after switching to simple view', (done) => { @@ -111,7 +115,7 @@ describe('Blob viewer', () => { expect( document.querySelector('.js-copy-blob-source-btn').getAttribute('data-original-title'), - ).toBe('Copy to clipboard'); + ).toBe('Copy source to clipboard'); done(); }); |