Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tests/nodes/ImageView.spec.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tests/nodes/ImageView.spec.js b/src/tests/nodes/ImageView.spec.js
index 04b5a0727..5c524c4d5 100644
--- a/src/tests/nodes/ImageView.spec.js
+++ b/src/tests/nodes/ImageView.spec.js
@@ -1,9 +1,6 @@
import { shallowMount } from '@vue/test-utils'
import ImageView from '../../nodes/ImageView.vue'
-global.FileList = {
- getCurrentDirectory: function() {return '/current'},
-}
global.OC = {
requestToken: '123',
config: {modRewriteWorking: true},
@@ -15,6 +12,7 @@ describe('Image View src attribute based on markdown', () => {
const factory = attrs => {
const propsData = {
+ options: {currentDirectory: '/current'},
node: {attrs}
}
const data = () => ({