Skip to content
Snippets Groups Projects
Commit 2e7c9bb3 authored by Edvard Dønvold Sjøborg's avatar Edvard Dønvold Sjøborg
Browse files

added another snapshot test

parent 4eea5d7d
No related branches found
No related tags found
No related merge requests found
import React from 'react'
import DropDown from "../Components/DropDown"
import renderer from 'react-test-renderer'
it('renders correctly', () => {
const tree = renderer
.create(<DropDown/>)
.toJSON();
expect(tree).toMatchSnapshot()
})
......@@ -57,6 +57,7 @@ exports[`renders correctly 1`] = `
className="navbutton left"
>
<img
alt="left"
onClick={[Function]}
src="left-arrow.png"
style={
......@@ -71,6 +72,7 @@ exports[`renders correctly 1`] = `
className="navbutton right"
>
<img
alt="right"
onClick={[Function]}
src="right-arrow.png"
style={
......
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
<div
className="dropdown"
>
<span
className="settings-icon"
onClick={[Function]}
/>
</div>
`;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment