Commit b01cb463 authored by Kostas Ioannou's avatar Kostas Ioannou Committed by Jacques Erasmus

Add SVG blob viewer

parent a4332ceb
...@@ -8,6 +8,7 @@ const viewers = { ...@@ -8,6 +8,7 @@ const viewers = {
pdf: () => import('./pdf_viewer.vue'), pdf: () => import('./pdf_viewer.vue'),
lfs: () => import('./lfs_viewer.vue'), lfs: () => import('./lfs_viewer.vue'),
audio: () => import('./audio_viewer.vue'), audio: () => import('./audio_viewer.vue'),
svg: () => import('./image_viewer.vue'),
}; };
export const loadViewer = (type, isUsingLfs) => { export const loadViewer = (type, isUsingLfs) => {
......
...@@ -62,7 +62,7 @@ RSpec.shared_examples 'it uploads and commits a new image file' do |drop: false| ...@@ -62,7 +62,7 @@ RSpec.shared_examples 'it uploads and commits a new image file' do |drop: false|
visit(project_blob_path(project, 'upload_image/logo_sample.svg')) visit(project_blob_path(project, 'upload_image/logo_sample.svg'))
expect(page).to have_css('.file-content img') expect(page).to have_css('.file-holder img')
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment