This commit is contained in:
2025-04-01 00:38:54 +02:00
parent d4d4c0c09d
commit 87da06293a
22351 changed files with 5168854 additions and 7538 deletions

View File

@@ -0,0 +1,22 @@
import Vue from 'vue';
import {shallowMount, mount} from '@vue/test-utils';
import Create from '@components/Create/Create.vue';
import EventBus from '@components/EventBus';
describe('Create.vue', () => {
it(`should'nt be hidden if it receive the event showCreateWishlist`, async () => {
const wrapper = shallowMount(Create);
EventBus.$emit('showCreateWishlist');
expect(wrapper.vm.isHidden).toBe(false);
});
it('value should be empty if it receive the event addedToWishlist', async () => {
const wrapper = shallowMount(Create);
EventBus.$emit('showCreateWishlist');
expect(wrapper.vm.value).toBe('');
});
});