-
-
Save lex111/8e7d1b97ef413adaedaef6a9a8bed18e 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 { shallowMount } from '@vue/test-utils' | |
import List from '@/components/List.vue' | |
describe('List.vue', () => { | |
it('renders li for each item in props.items', () => { | |
const items = ['', ''] | |
const wrapper = shallowMount(List, { | |
propsData: { items } | |
}) | |
expect(wrapper.findAll('li')).toHaveLength(items.length) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment