2018-08-11 17:58:51 +02:00
|
|
|
import {expect} from 'chai'
|
|
|
|
|
|
2018-04-20 18:46:18 +02:00
|
|
|
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')
|
|
|
|
|
})
|
|
|
|
|
})
|