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

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-05-05 12:12:10 +0300
committerVincent Petry <vincent@nextcloud.com>2021-05-05 12:12:10 +0300
commit7cdd5b077402b0e95e86ff1a66be17730d230105 (patch)
treebb9a74fc48b2328d0fe805c8c37d24052258da27 /src/test-setup.js
parentd1625a15fe514460f29ac23ff81fbbe3f61e6f71 (diff)
Added tests for RoomSelector
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'src/test-setup.js')
-rw-r--r--src/test-setup.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test-setup.js b/src/test-setup.js
index 2f7efb184..432e487fc 100644
--- a/src/test-setup.js
+++ b/src/test-setup.js
@@ -22,6 +22,7 @@
// eslint-disable-next-line node/no-unpublished-import
import 'regenerator-runtime/runtime'
+import Vue from 'vue'
global.OC = {
requestToken: '123',
@@ -36,4 +37,12 @@ global.OC = {
return 'en_GB'
},
}
+global.OCA = {
+ Talk: {
+ },
+}
global.t = jest.fn().mockImplementation((app, text) => text)
+
+Vue.prototype.t = global.t
+Vue.prototype.OC = OC
+Vue.prototype.OCA = OCA