mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2025-01-23 17:18:36 +00:00
12 lines
341 B
JavaScript
12 lines
341 B
JavaScript
|
import Vue from 'vue';
|
||
|
import Hello from '@/components/Home';
|
||
|
|
||
|
describe('Hello.vue', () => {
|
||
|
it('should render correct contents', () => {
|
||
|
const Constructor = Vue.extend(Hello);
|
||
|
const vm = new Constructor().$mount();
|
||
|
expect(vm.$el.querySelector('.hello h1').textContent)
|
||
|
.to.equal('Welcome to Your Vue.js App');
|
||
|
});
|
||
|
});
|