Skip to content

Instantly share code, notes, and snippets.

@jamesoshea
Last active June 11, 2018 18:57
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/3e6879d1e22bbc65014acd7292d43a13 to your computer and use it in GitHub Desktop.
Save jamesoshea/3e6879d1e22bbc65014acd7292d43a13 to your computer and use it in GitHub Desktop.
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