diff options
author | Raimund Schlüßler <raimund.schluessler@mailbox.org> | 2020-04-15 16:33:04 +0300 |
---|---|---|
committer | Raimund Schlüßler <raimund.schluessler@mailbox.org> | 2020-04-15 22:25:28 +0300 |
commit | 7546257d129072ea47f990b7408df3e2d8068a76 (patch) | |
tree | 85902afed7daa5abe98c8ffde9bf3bc47333752e /tests | |
parent | 7392c1e1785db63ef61ec01e127605590277ba02 (diff) |
Use @nextcloud/moment, closes #961
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/javascript/unit/setup.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/javascript/unit/setup.js b/tests/javascript/unit/setup.js index 4414f56a..5464a055 100644 --- a/tests/javascript/unit/setup.js +++ b/tests/javascript/unit/setup.js @@ -1,6 +1,6 @@ import { config } from '@vue/test-utils' import { OC } from './OC.js' -import moment from 'moment' +import moment from '@nextcloud/moment' // eslint-disable-next-line node/no-unpublished-import import MockDate from 'mockdate' @@ -8,7 +8,6 @@ import MockDate from 'mockdate' MockDate.set(moment('20190101T123456', 'YYYYMMDDTHHmmss')) global.OC = new OC() -global.moment = moment // Mock nextcloud translate functions config.mocks.$t = function(app, string) { |