mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 01:59:55 +02:00
Fixed broken unit tests due to front-end cleanup
This commit is contained in:
parent
e3040de444
commit
a8a609155b
23 changed files with 559 additions and 340 deletions
12
front/tests/unit/specs/components/common.spec.js
Normal file
12
front/tests/unit/specs/components/common.spec.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import {expect} from 'chai'
|
||||
|
||||
import Username from '@/components/common/Username.vue'
|
||||
|
||||
import { render } from '../../utils'
|
||||
|
||||
describe('Username', () => {
|
||||
it('displays username', () => {
|
||||
const vm = render(Username, {username: 'Hello'})
|
||||
expect(vm.$el.textContent).to.equal('Hello')
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue