Skip to content

Commit 0531a5c

Browse files
committed
loader component snapshot added
1 parent bf2c921 commit 0531a5c

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should take a snapshot 1`] = `
4+
<DocumentFragment>
5+
<div
6+
class="Loader--Container"
7+
>
8+
<div
9+
class="Loader--Element"
10+
/>
11+
</div>
12+
</DocumentFragment>
13+
`;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react';
2+
import { render } from 'test-utils';
3+
import Loader from '../loader/loader.component.jsx';
4+
5+
it('should take a snapshot', () => {
6+
const { asFragment } = render(<Loader />)
7+
8+
expect(asFragment(<Loader />)).toMatchSnapshot()
9+
});

0 commit comments

Comments
 (0)