feat: add frontend

This commit is contained in:
2022-10-07 16:15:53 +02:00
parent abfaf19c47
commit 97059d4c6e
72 changed files with 47026 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import { mount } from '@vue/test-utils'
import Rating from '@/components/Rating.vue'
describe('Rating', () => {
test('is a Vue instance', () => {
const wrapper = mount(Rating, {
props: {
color: "#001122"
}
});
expect(wrapper.vm).toBeTruthy();
});
test('contains no color', () => {
const wrapper = mount(Rating, {
props: {
color: "#001122"
}
});
expect(wrapper.find(".rating span").find("span").classes()).empty();
});
})