Last active
June 11, 2018 18:50
-
-
Save jamesoshea/94048a6b4500424537c26c60aea5e851 to your computer and use it in GitHub Desktop.
This file contains 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 { 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