mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-09-28 04:31:43 +02:00
18 lines
501 B
TypeScript
18 lines
501 B
TypeScript
import { render } from '@testing-library/vue';
|
|
import AskAssistantButton from '../AskAssistantButton.vue';
|
|
|
|
describe('AskAssistantButton', () => {
|
|
it('renders default button correctly', () => {
|
|
const { container } = render(AskAssistantButton, {});
|
|
expect(container).toMatchSnapshot();
|
|
});
|
|
it('renders button with unread messages correctly', () => {
|
|
const { container } = render(AskAssistantButton, {
|
|
props: {
|
|
unreadCount: 3,
|
|
},
|
|
});
|
|
expect(container).toMatchSnapshot();
|
|
});
|
|
});
|