2019-04-04 00:52:21 +02:00

22 lines
469 B
JavaScript

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
})