Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-04-26 12:09:07 +0300
committerDouwe Maan <douwe@selenight.nl>2017-04-27 20:23:27 +0300
commit95658fb62a955a40260d5b7c4ccd51ce72ae1fb9 (patch)
tree6f8f5be3b4f9d1a070b31a8fc29e5404300ff5dd /spec/javascripts/blob
parentdc4726f0a707019c64e60e58d45bb647a43d4ec8 (diff)
Fixed failing JS tests
Diffstat (limited to 'spec/javascripts/blob')
-rw-r--r--spec/javascripts/blob/viewer/index_spec.js10
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();
});