Skip to content

Instantly share code, notes, and snippets.

@eddyerburgh
Last active September 30, 2018 04:44
Show Gist options
  • Save eddyerburgh/fc561bbb10df05ca46892d31b1e81ec2 to your computer and use it in GitHub Desktop.
Save eddyerburgh/fc561bbb10df05ca46892d31b1e81ec2 to your computer and use it in GitHub Desktop.
import { mount } from '@vue/test-utils'
import MessageToggle from '@/components/MessageToggle.vue'
describe('MessageToggle.vue', () => {
it('displays default message', () => {
const wrapper = mount(MessageToggle)
expect(wrapper.text()).toContain('default message')
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment