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

github.com/nextcloud/twofactor_totp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-03-01 12:52:02 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-03-01 12:52:02 +0300
commite013656f9f4e7d604d26783b6bf55e2cee3602f1 (patch)
treee1f8a9b2b5fce5b0007ec4bb6e22dfac1c5a9c93 /src
parent529a262440d1830b50d1365cb7f58f4c24815694 (diff)
Fix tests
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src')
-rw-r--r--src/tests/setup.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/setup.js b/src/tests/setup.js
index 165df18..6515db3 100644
--- a/src/tests/setup.js
+++ b/src/tests/setup.js
@@ -28,6 +28,12 @@ require('vue').mixin({
})
global.expect = require('chai').expect
+// https://github.com/vuejs/vue-test-utils/issues/936
+// better fix for "TypeError: Super expression must either be null or
+// a function" than pinning an old version of prettier.
+//
+// https://github.com/vuejs/vue-cli/issues/2128#issuecomment-453109575
+window.Date = Date
global.OC = {
generateUrl: () => ''