Commit 4da2e95b authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Rename findImage to findContent

parent 6900c228
...@@ -12,12 +12,12 @@ describe('Audio Viewer', () => { ...@@ -12,12 +12,12 @@ describe('Audio Viewer', () => {
wrapper = shallowMount(AudioViewer, { propsData: { blob: DEFAULT_BLOB_DATA } }); wrapper = shallowMount(AudioViewer, { propsData: { blob: DEFAULT_BLOB_DATA } });
}; };
const findImage = () => wrapper.find('[data-testid="audio"]'); const findContent = () => wrapper.find('[data-testid="audio"]');
it('renders an audio source component', () => { it('renders an audio source component', () => {
createComponent(); createComponent();
expect(findImage().exists()).toBe(true); expect(findContent().exists()).toBe(true);
expect(findImage().attributes('src')).toBe(DEFAULT_BLOB_DATA.rawPath); expect(findContent().attributes('src')).toBe(DEFAULT_BLOB_DATA.rawPath);
}); });
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment