Add first example test case for Badges

This commit is contained in:
Robert Schäfer 2018-11-03 18:06:18 +01:00
parent bd10d5dca3
commit dc83f5281f

22
components/Badges.spec.js Normal file
View File

@ -0,0 +1,22 @@
import { shallowMount } from '@vue/test-utils'
import Badges from './Badges.vue'
describe('Badges.vue', () => {
let wrapper
beforeEach(() => {
wrapper = shallowMount(Badges, {
})
})
it('renders', () => {
expect(wrapper.is('div')).toBe(true)
})
it('has class "hc-badges"', () => {
expect(wrapper.contains('.hc-badges')).toBe(true)
})
// TODO: add similar software tests for other components
// TODO: add more test cases in this file
})