summaryrefslogtreecommitdiffstats
path: root/src/__mocks__/router.js
blob: cfc83662a1e69bdc92478266e5fc88f541fa3047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
 * SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
import VueRouter from 'vue-router'

const Stub = {
	name: 'Stub',
	template: '<div></div>',
}

export default new VueRouter({
	linkActiveClass: 'active',
	routes: [
		{
			path: '/apps/spreed',
			name: 'root',
			component: Stub,
			props: true,
		},
		{
			path: '/apps/spreed/not-found',
			name: 'notfound',
			component: Stub,
			props: true,
		},
		{
			path: '/apps/spreed/duplicate-session',
			name: 'duplicatesession',
			component: Stub,
			props: true,
		},
		{
			path: '/call/:token',
			name: 'conversation',
			component: Stub,
			props: true,
		},
		{
			path: '/call/:token/recording',
			name: 'recording',
			component: Stub,
			props: true,
		},
	],
})