mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Add first example test case for Badges
This commit is contained in:
parent
bd10d5dca3
commit
dc83f5281f
22
components/Badges.spec.js
Normal file
22
components/Badges.spec.js
Normal 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
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user