Skip to content
Snippets Groups Projects
Commit 94985e1f authored by Ina Martini's avatar Ina Martini
Browse files

test: create test for ButtonDisplayStreak

parent 7e0d23c0
No related branches found
No related tags found
3 merge requests!66Final merge,!57General cleanup of application,!4Pipeline fix
import { describe, expect, it, beforeEach } from 'vitest';
import { mount } from '@vue/test-utils';
import { createPinia, setActivePinia } from 'pinia';
import ButtonComponent from '@/components/ButtonDisplayStreak.vue';
describe('ButtonComponent', () => {
beforeEach(() => {
setActivePinia(createPinia());
});
it('renders correctly', () => {
const wrapper = mount(ButtonComponent, {
props: {
buttonText: 'Click me',
type: 'goal',
},
});
expect(wrapper.exists()).toBe(true);
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment