mirror of
https://github.com/TheGreyDiamond/Enlight.git
synced 2026-01-31 15:40:25 +01:00
Inital commit for vue
This commit is contained in:
13
enlight/test/unit/specs/LandingPage.spec.js
Normal file
13
enlight/test/unit/specs/LandingPage.spec.js
Normal file
@@ -0,0 +1,13 @@
|
||||
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!')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user