mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
19 lines
501 B
TypeScript
19 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();
|
|
});
|
|
});
|