summaryrefslogtreecommitdiffstats
path: root/tests/javascript/unit/setup.ts
blob: ec9d61f8f30256f5b17712f57d352e245c3a72b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { config } from '@vue/test-utils'

// Note: This was copied from nextcloud/tasks repo
// import { OC } from './OC.js'

// TODO: will this be used?
// global.OC = new OC()

// Mock nextcloud translate functions
config.mocks.$t = function(_app: any, string: any) {
	return string
}
config.mocks.t = config.mocks.$t

config.mocks.$n = function(app: any, singular: any, plural: any, count: any) {
	return singular
}
config.mocks.n = config.mocks.$n

afterAll(() => {
	
})