boussole-pluss/frontend/test/Rating.spec.js

22 lines
494 B
JavaScript
Raw Normal View History

2022-10-07 14:15:53 +00:00
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();
});
})