Files
Raimund Schlüßler 931dfe2d2f Migrate to vue3
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
2024-02-01 09:07:46 +01:00

28 lines
486 B
JavaScript

import { OC } from './OC.js'
// eslint-disable-next-line n/no-unpublished-import
import MockDate from 'mockdate'
import { afterAll } from 'vitest'
// Set date to fixed value
MockDate.set(new Date('2019-01-01T12:34:56'))
global.OC = new OC()
// Mock nextcloud translate functions
global.t = function(app, string) {
return string
}
global.n = function(app, singular, plural, count) {
return singular
}
global.OCA = {}
global.OCA.Tasks = {}
afterAll(() => {
MockDate.reset()
})