Created
May 29, 2019 20:40
-
-
Save xrd/224b06c56f63dc30b73597d801d5aff4 to your computer and use it in GitHub Desktop.
test/unit/specs/HelloWorld.spec.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
import HelloWorld from '@/components/HelloWorld' | |
describe('HelloWorld.vue', () => { | |
it('should render correct contents', () => { | |
const Constructor = Vue.extend(HelloWorld) | |
const vm = new Constructor().$mount() | |
expect(vm.$el.querySelector('.hello h1').textContent) | |
.toEqual('Welcome to Your Vue.js App') | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment