mirror of
https://github.com/marktext/marktext.git
synced 2025-05-07 11:19:38 +08:00

* Fix tests and improve CI * Add xvfb to Linux - still problems with Mocha e2e tests * Disable Webpack Bundle Analyzer for testing * Use preinstalled yarn application on AppVeyor * Fix build failure with latest vue version * Remove "markdown-toc" * Fix application title unit test * Hide electron window during unit tests * Add basic muya unit tests * Dirty markdown-toc replacement * Update dependencies * Update eslint packages and configuration
14 lines
380 B
Plaintext
14 lines
380 B
Plaintext
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!')
|
|
})
|
|
})
|