first commit

This commit is contained in:
2024-11-05 12:22:50 +01:00
commit e5682a3912
19641 changed files with 2948548 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import {shallowMount} from '@vue/test-utils';
import Delete from '@components/Delete/Delete.vue';
import EventBus from '@components/EventBus';
describe('Delete.vue', () => {
it(`should'nt be hidden if it receive the event showDelete`, async () => {
const wrapper = shallowMount(Delete);
EventBus.$emit('showDeleteWishlist', {
detail: {
listId: 1,
productId: 1,
productAttributeId: 1
}
});
expect(wrapper.vm.isHidden).toBe(false);
});
});