Skip to content

Instantly share code, notes, and snippets.

@eddyerburgh
Last active September 8, 2017 12:13
Show Gist options
  • Save eddyerburgh/d23aca65d764b2ae1a2484f07b7a8166 to your computer and use it in GitHub Desktop.
Save eddyerburgh/d23aca65d764b2ae1a2484f07b7a8166 to your computer and use it in GitHub Desktop.
import Vue from 'vue'
import MessageToggle from '@/components/MessageToggle.vue'
describe('MessageToggle.vue', () => {
it('displays default message', () => {
const Ctor = Vue.extend(MessageToggle)
const vm = new Ctor().$mount()
expect(vm.$el.textContent).toContain('default message')
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment