diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-05-05 12:12:10 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-05-05 12:12:10 +0300 |
commit | 7cdd5b077402b0e95e86ff1a66be17730d230105 (patch) | |
tree | bb9a74fc48b2328d0fe805c8c37d24052258da27 /src/test-setup.js | |
parent | d1625a15fe514460f29ac23ff81fbbe3f61e6f71 (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.js | 9 |
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 |