chore: VGeneral tests

This commit is contained in:
WDaan 2022-11-16 14:33:36 +01:00
parent ef64c38f09
commit b0cd7846b4
2 changed files with 27 additions and 10 deletions

View file

@ -30,7 +30,7 @@ describe('General', () => {
rightDrawer: 10, rightDrawer: 10,
paginationSize: 10, paginationSize: 10,
title: 'test', title: 'test',
lang: 'English' lang: 'English',
} }
} }
} }
@ -43,38 +43,38 @@ describe('General', () => {
}) })
it('tests showCurrentSpeed', () => { it('tests showCurrentSpeed', () => {
expect(wrapper.vm.showCurrentSpeed).toEqual(100) expect(wrapper.vm.webuiSettings.showCurrentSpeed).toEqual(100)
}) })
it('tests showSpeedGraph', () => { it('tests showSpeedGraph', () => {
expect(wrapper.vm.showSpeedGraph).toEqual(true) expect(wrapper.vm.webuiSettings.showSpeedGraph).toEqual(true)
}) })
it('tests showSessionStat', () => { it('tests showSessionStat', () => {
expect(wrapper.vm.showSessionStat).toEqual(true) expect(wrapper.vm.webuiSettings.showSessionStat).toEqual(true)
}) })
it('tests showAlltimeStat', () => { it('tests showAlltimeStat', () => {
expect(wrapper.vm.showAlltimeStat).toEqual(true) expect(wrapper.vm.webuiSettings.showAlltimeStat).toEqual(true)
}) })
it('tests showTrackerFilter', () => { it('tests showTrackerFilter', () => {
expect(wrapper.vm.showTrackerFilter).toEqual(true) expect(wrapper.vm.webuiSettings.showTrackerFilter).toEqual(true)
}) })
it('tests rightDrawer', () => { it('tests rightDrawer', () => {
expect(wrapper.vm.rightDrawer).toEqual(10) expect(wrapper.vm.webuiSettings.rightDrawer).toEqual(10)
}) })
it('tests paginationSize', () => { it('tests paginationSize', () => {
expect(wrapper.vm.paginationSize).toEqual(10) expect(wrapper.vm.webuiSettings.paginationSize).toEqual(10)
}) })
it('tests title', () => { it('tests title', () => {
expect(wrapper.vm.title).toEqual('test') expect(wrapper.vm.webuiSettings.title).toEqual('test')
}) })
it('tests lang', () => { it('tests lang', () => {
expect(wrapper.vm.lang).toEqual('English') expect(wrapper.vm.webuiSettings.lang).toEqual('English')
}) })
}) })

View file

@ -59,6 +59,13 @@ exports[`General > render correctly 1`] = `
</vuecomponent-stub> </vuecomponent-stub>
</vuecomponent-stub> </vuecomponent-stub>
</vuecomponent-stub> </vuecomponent-stub>
<vuecomponent-stub data-v-7da6d3e2=\\"\\" activeclass=\\"\\" tag=\\"div\\">
<vuecomponent-stub data-v-7da6d3e2=\\"\\" tag=\\"div\\" dense=\\"true\\">
<vuecomponent-stub data-v-7da6d3e2=\\"\\" tag=\\"div\\">
<vuecomponent-stub data-v-7da6d3e2=\\"\\" errorcount=\\"1\\" errormessages=\\"\\" messages=\\"\\" rules=\\"\\" successmessages=\\"\\" backgroundcolor=\\"\\" hidedetails=\\"true\\" ripple=\\"true\\" valuecomparator=\\"[Function]\\" inset=\\"true\\" class=\\"v-input--reverse pa-0 ma-0\\"></vuecomponent-stub>
</vuecomponent-stub>
</vuecomponent-stub>
</vuecomponent-stub>
<vuecomponent-stub data-v-7da6d3e2=\\"\\" activeclass=\\"\\" tag=\\"div\\"> <vuecomponent-stub data-v-7da6d3e2=\\"\\" activeclass=\\"\\" tag=\\"div\\">
<vuecomponent-stub data-v-7da6d3e2=\\"\\" tag=\\"div\\" dense=\\"true\\"> <vuecomponent-stub data-v-7da6d3e2=\\"\\" tag=\\"div\\" dense=\\"true\\">
<vuecomponent-stub data-v-7da6d3e2=\\"\\" cols=\\"8\\" sm=\\"8\\" md=\\"10\\" tag=\\"div\\"> <vuecomponent-stub data-v-7da6d3e2=\\"\\" cols=\\"8\\" sm=\\"8\\" md=\\"10\\" tag=\\"div\\">
@ -89,6 +96,16 @@ exports[`General > render correctly 1`] = `
</vuecomponent-stub> </vuecomponent-stub>
</vuecomponent-stub> </vuecomponent-stub>
</vuecomponent-stub> </vuecomponent-stub>
<vuecomponent-stub data-v-7da6d3e2=\\"\\" activeclass=\\"\\" tag=\\"div\\">
<vuecomponent-stub data-v-7da6d3e2=\\"\\" tag=\\"div\\" dense=\\"true\\">
<vuecomponent-stub data-v-7da6d3e2=\\"\\" sm=\\"6\\" md=\\"9\\" tag=\\"div\\">
<p data-v-7da6d3e2=\\"\\" class=\\"subtitle-1 mt-2\\"> </p>
</vuecomponent-stub>
<vuecomponent-stub data-v-7da6d3e2=\\"\\" sm=\\"6\\" md=\\"3\\" tag=\\"div\\">
<vuecomponent-stub data-v-7da6d3e2=\\"\\" errorcount=\\"1\\" errormessages=\\"\\" messages=\\"\\" rules=\\"\\" successmessages=\\"\\" backgroundcolor=\\"\\" dense=\\"true\\" hidedetails=\\"true\\" label=\\"using Dayjs\\" loaderheight=\\"2\\" clearicon=\\"$clear\\" outlined=\\"true\\" placeholder=\\"DD/MM/YYYY, HH:mm:ss\\" type=\\"text\\" class=\\"mb-2\\"></vuecomponent-stub>
</vuecomponent-stub>
</vuecomponent-stub>
</vuecomponent-stub>
<vuecomponent-stub data-v-7da6d3e2=\\"\\" activeclass=\\"\\" tag=\\"div\\"> <vuecomponent-stub data-v-7da6d3e2=\\"\\" activeclass=\\"\\" tag=\\"div\\">
<vuecomponent-stub data-v-7da6d3e2=\\"\\" tag=\\"div\\" dense=\\"true\\"> <vuecomponent-stub data-v-7da6d3e2=\\"\\" tag=\\"div\\" dense=\\"true\\">
<vuecomponent-stub data-v-7da6d3e2=\\"\\" cols=\\"10\\" sm=\\"10\\" md=\\"11\\" tag=\\"div\\"> <vuecomponent-stub data-v-7da6d3e2=\\"\\" cols=\\"10\\" sm=\\"10\\" md=\\"11\\" tag=\\"div\\">