UNPKG

dort

Version:

File sharing through web with wonderful alternation.

20 lines (16 loc) 426 B
import { mount } from '@vue/test-utils' import Loading from '@/components/Loading' describe('Loading', () => { it('default', () => { const wrapper = mount(Loading) expect(wrapper.find('h1').text()).to.equal('Loading') }) it('text', () => { const wrapper = mount(Loading, { propsData: { text: 'text string' } }) expect(wrapper.find('h1').text()).to.equal('text string') }) })