diff --git a/frontend/src/routes/router.test.js b/frontend/src/routes/router.test.js new file mode 100644 index 000000000..6c182425e --- /dev/null +++ b/frontend/src/routes/router.test.js @@ -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', + })) + }) + + + }) +})