mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
feat: Unit Tests for Vue Router
This commit is contained in:
parent
5eb40c4819
commit
eed9c7a26f
28
frontend/src/routes/router.test.js
Normal file
28
frontend/src/routes/router.test.js
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import router from './router'
|
||||||
|
|
||||||
|
describe('router', () => {
|
||||||
|
describe('options', () => {
|
||||||
|
const options = router.options
|
||||||
|
|
||||||
|
it('has "/vue" as base', () => {
|
||||||
|
console.log(router)
|
||||||
|
expect(options).toEqual(expect.objectContaining({
|
||||||
|
base: '/vue',
|
||||||
|
}))
|
||||||
|
})
|
||||||
|
|
||||||
|
it('has "active" as linkActiveClass', () => {
|
||||||
|
expect(options).toEqual(expect.objectContaining({
|
||||||
|
linkActiveClass: 'active',
|
||||||
|
}))
|
||||||
|
})
|
||||||
|
|
||||||
|
it('has "history" as mode', () => {
|
||||||
|
expect(options).toEqual(expect.objectContaining({
|
||||||
|
mode: 'history',
|
||||||
|
}))
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
})
|
||||||
|
})
|
||||||
Loading…
x
Reference in New Issue
Block a user