summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2018-05-06 22:44:32 +0200
committerTim Zallmann <tzallmann@gitlab.com>2018-06-08 11:48:15 +0200
commitb9f8d760cbb2d0e0ec28c868a15e30ebcd5dd890 (patch)
tree15632dc48f4bfd4a3781c8c94c209f026acf733d
parent4609c3070e81b3fd98974881822c0fecfaab8609 (diff)
downloadgitlab-ce-b9f8d760cbb2d0e0ec28c868a15e30ebcd5dd890.tar.gz
Fixed Karma Test
-rw-r--r--spec/javascripts/vue_shared/components/content_viewer/content_viewer_spec.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/javascripts/vue_shared/components/content_viewer/content_viewer_spec.js b/spec/javascripts/vue_shared/components/content_viewer/content_viewer_spec.js
index 383f0cd29ea..127b7cf9396 100644
--- a/spec/javascripts/vue_shared/components/content_viewer/content_viewer_spec.js
+++ b/spec/javascripts/vue_shared/components/content_viewer/content_viewer_spec.js
@@ -59,9 +59,8 @@ describe('ContentViewer', () => {
});
setTimeout(() => {
- expect(vm.$el.querySelector('.file-info').textContent.trim()).toContain(
- 'test.abc (1.00 KiB)',
- );
+ expect(vm.$el.querySelector('.file-info').textContent.trim()).toContain('test.abc');
+ expect(vm.$el.querySelector('.file-info').textContent.trim()).toContain('(1.00 KiB)');
expect(vm.$el.querySelector('.btn.btn-default').textContent.trim()).toContain('Download');
done();