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:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-10 20:20:54 +0300
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-10 22:26:57 +0300
commit40e2be25c74aef14a94cf9dff4e80554958fd347 (patch)
treee756b067f9fb61b2390d7aa9686e4add55e633d6 /app/assets/javascripts/blob
parent75d3ed9a43eceda6a375e1538945a20c97925841 (diff)
Added unit tests
Diffstat (limited to 'app/assets/javascripts/blob')
-rw-r--r--app/assets/javascripts/blob/balsamiq/balsamiq_viewer.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/blob/balsamiq/balsamiq_viewer.js b/app/assets/javascripts/blob/balsamiq/balsamiq_viewer.js
index 0065584cec5..d0c161f2aad 100644
--- a/app/assets/javascripts/blob/balsamiq/balsamiq_viewer.js
+++ b/app/assets/javascripts/blob/balsamiq/balsamiq_viewer.js
@@ -1,7 +1,7 @@
/* global Flash */
-import Spinner from '../../spinner';
import sqljs from 'sql.js';
+import Spinner from '../../spinner';
class BalsamiqViewer {
constructor(viewer) {
@@ -32,7 +32,7 @@ class BalsamiqViewer {
this.initDatabase(loadEvent.target.response);
const previews = this.getPreviews();
- const renderedPreviews = previews.map(preview => this.renderPreview(preview, container));
+ const renderedPreviews = previews.map(preview => this.renderPreview(preview));
container.innerHTML = renderedPreviews.join('');
container.classList.add('list-inline', 'previews');
@@ -68,7 +68,7 @@ class BalsamiqViewer {
const name = JSON.parse(title[0].values[0][2]).name;
const image = preview.image;
- template = template.replace(/{{name}}/, name).replace(/{{image}}/, image);
+ template = template.replace(/{{name}}/g, name).replace(/{{image}}/g, image);
return template;
}