Skip to content

Commit b081d8b

Browse files
Removed unnecessary test
1 parent 1d90560 commit b081d8b

1 file changed

Lines changed: 1 addition & 29 deletions

File tree

app/frontend/tests/unit/components/designer/FloatButton.spec.js

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
// @vitest-environment happy-dom
2-
import {
3-
mount,
4-
RouterLinkStub,
5-
shallowMount,
6-
flushPromises,
7-
} from '@vue/test-utils';
2+
import { mount, RouterLinkStub, shallowMount } from '@vue/test-utils';
83
import { setActivePinia, createPinia } from 'pinia';
94
import { beforeEach, expect, vi } from 'vitest';
105
import { useRouter } from 'vue-router';
11-
import { useFormStore } from '~/store/form';
126

137
import FloatButton from '~/components/designer/FloatButton.vue';
148

@@ -31,7 +25,6 @@ vi.mock('vuetify', () => ({
3125
describe('FloatButton.vue', () => {
3226
const pinia = createPinia();
3327
setActivePinia(pinia);
34-
const formStore = useFormStore(pinia);
3528
const resolve = vi.fn();
3629

3730
beforeEach(() => {
@@ -509,27 +502,6 @@ describe('FloatButton.vue', () => {
509502
expect(wrapper.vm.isManageEnabled).toBeTruthy();
510503
});
511504

512-
it('DISPLAY_VERSION returns the design version for a form + 1 or 1 if it is a new form', async () => {
513-
const wrapper = shallowMount(FloatButton, {
514-
props: {
515-
formId: '123',
516-
draftId: '123',
517-
},
518-
global: {
519-
plugins: [pinia],
520-
stubs: {
521-
name: 'RouterLink',
522-
template: '<div class="router-link-stub"><slot /></div>',
523-
},
524-
},
525-
});
526-
527-
formStore.form.versions = [{}, {}];
528-
await flushPromises();
529-
530-
expect(wrapper.vm.DISPLAY_VERSION).toEqual(3);
531-
});
532-
533505
it('Manage button is disabled if there is no form id', () => {
534506
const wrapper = mount(FloatButton, {
535507
props: {

0 commit comments

Comments
 (0)