© 2026 Hedgehog Software, LLC
registerEndpoint('/api/channel/1', { method: 'DELETE', handler: () => { return {}; }, }); describe('ChannelMenu', () => { it('deletes a channel', async () => { const wrapper = mountWrapper(); const deleteState = useState(DELETE_CHANNEL_ID); wrapper.vm.deleteChannel(); await flushPromises(); await flushPromises(); expect(deleteState.value).toBe(wrapper.vm.props.channel.idChannel); }); });
Join the Discord to ask follow-up questions and connect with the community
Nuxt Community Chat Server
31,632 Members