mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
22 lines
469 B
JavaScript
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
|
|
})
|