funkwhale/front/tests/unit/specs/components/common.spec.js

13 wiersze
297 B
JavaScript

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