Last active
June 11, 2018 18:57
-
-
Save jamesoshea/3e6879d1e22bbc65014acd7292d43a13 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 FakeComponent from '../components/FakeComponent.vue'; | |
describe('FakeComponent', () => { | |
test('it should display the right number of table rows', () => { | |
const wrapper = mount(FakeComponent); | |
expect( | |
wrapper.findAll('[data-test="fake-table-row"]').wrappers.length | |
).toBe(2); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment