Skip to content

Instantly share code, notes, and snippets.

@jamesoshea
Last active June 11, 2018 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesoshea/94048a6b4500424537c26c60aea5e851 to your computer and use it in GitHub Desktop.
Save jamesoshea/94048a6b4500424537c26c60aea5e851 to your computer and use it in GitHub Desktop.
import { mount } from '@vue/test-utils';
import CoolCard from '../components/CoolCard.vue';
describe('CoolCard', () => {
test('should render content correctly', () => {
const wrapper = mount(CoolCard);
expect(wrapper.find('[data-test="cool-card-div"]').text()).toEqual(
'hello I am a card :)'
);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment