This commit is contained in:
2025-03-21 20:24:43 +01:00
parent 224398df90
commit f34c9162d4
12427 changed files with 5329941 additions and 373384 deletions

View File

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