flightgear-airports-old/test/unit/specs/LandingPage.spec.js

14 lines
380 B
JavaScript
Raw Normal View History

2019-11-06 05:43:18 +08:00
import Vue from 'vue'
import LandingPage from '@/components/LandingPage'
describe('LandingPage.vue', () => {
it('should render correct contents', () => {
const vm = new Vue({
el: document.createElement('div'),
render: h => h(LandingPage)
}).$mount()
expect(vm.$el.querySelector('.title').textContent).to.contain('Welcome to your new project!')
})
})