diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2018-05-06 22:44:32 +0200 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2018-06-08 11:48:15 +0200 |
commit | b9f8d760cbb2d0e0ec28c868a15e30ebcd5dd890 (patch) | |
tree | 15632dc48f4bfd4a3781c8c94c209f026acf733d | |
parent | 4609c3070e81b3fd98974881822c0fecfaab8609 (diff) | |
download | gitlab-ce-b9f8d760cbb2d0e0ec28c868a15e30ebcd5dd890.tar.gz |
Fixed Karma Test
-rw-r--r-- | spec/javascripts/vue_shared/components/content_viewer/content_viewer_spec.js | 5 |
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(); |