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:
Diffstat (limited to 'spec/javascripts/notebook/cells/output/index_spec.js')
-rw-r--r--spec/javascripts/notebook/cells/output/index_spec.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/javascripts/notebook/cells/output/index_spec.js b/spec/javascripts/notebook/cells/output/index_spec.js
index 7fe8d227f05..dbf79f85c7c 100644
--- a/spec/javascripts/notebook/cells/output/index_spec.js
+++ b/spec/javascripts/notebook/cells/output/index_spec.js
@@ -1,11 +1,11 @@
import Vue from 'vue';
import CodeComponent from '~/notebook/cells/output/index.vue';
-import json from '../../../fixtures/notebook/file.json';
const Component = Vue.extend(CodeComponent);
describe('Output component', () => {
let vm;
+ let json;
const createComponent = (output) => {
vm = new Component({
@@ -17,6 +17,10 @@ describe('Output component', () => {
vm.$mount();
};
+ beforeEach(() => {
+ json = getJSONFixture('blob/notebook/basic.json');
+ });
+
describe('text output', () => {
beforeEach((done) => {
createComponent(json.cells[2].outputs[0]);