LandingPage.spec.js 380 B

12345678910111213
  1. import Vue from 'vue'
  2. import LandingPage from '@/components/LandingPage'
  3. describe('LandingPage.vue', () => {
  4. it('should render correct contents', () => {
  5. const vm = new Vue({
  6. el: document.createElement('div'),
  7. render: h => h(LandingPage)
  8. }).$mount()
  9. expect(vm.$el.querySelector('.title').textContent).to.contain('Welcome to your new project!')
  10. })
  11. })