first commit
This commit is contained in:
19
modules/blockwishlist/tests/UI/Delete.spec.js
Normal file
19
modules/blockwishlist/tests/UI/Delete.spec.js
Normal 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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user