Skip to content

Instantly share code, notes, and snippets.

@lex111
Forked from eddyerburgh/MessageToggle.spec.js
Created July 1, 2018 12:08
Show Gist options
  • Save lex111/557c008cb593ee4f58c8cd77582b746f to your computer and use it in GitHub Desktop.
Save lex111/557c008cb593ee4f58c8cd77582b746f to your computer and use it in GitHub Desktop.
import { shallowMount } from '@vue/test-utils'
import MessageToggle from '@/components/MessageToggle.vue'
describe('MessageToggle.vue', () => {
it('displays default message', () => {
const wrapper = shallowMount(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