This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3235b17
commit a4177c3
Showing
7 changed files
with
506 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Loader should render default ui 1`] = ` | ||
initialize { | ||
"0": Object { | ||
"attribs": Object { | ||
"class": "undefined icon icon-os-search-role", | ||
}, | ||
"children": Array [], | ||
"name": "span", | ||
"namespace": "http://www.w3.org/1999/xhtml", | ||
"next": null, | ||
"parent": null, | ||
"prev": null, | ||
"root": Object { | ||
"attribs": Object {}, | ||
"children": Array [ | ||
[Circular], | ||
], | ||
"name": "root", | ||
"namespace": "http://www.w3.org/1999/xhtml", | ||
"next": null, | ||
"parent": null, | ||
"prev": null, | ||
"type": "root", | ||
"x-attribsNamespace": Object {}, | ||
"x-attribsPrefix": Object {}, | ||
}, | ||
"type": "tag", | ||
"x-attribsNamespace": Object { | ||
"class": undefined, | ||
}, | ||
"x-attribsPrefix": Object { | ||
"class": undefined, | ||
}, | ||
}, | ||
"_root": [Circular], | ||
"length": 1, | ||
"options": Object { | ||
"decodeEntities": true, | ||
"normalizeWhitespace": false, | ||
"withDomLvl1": true, | ||
"xml": false, | ||
}, | ||
} | ||
`; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react'; | ||
import Icon from './index'; | ||
import { render } from 'enzyme'; | ||
|
||
describe('Loader', () => { | ||
it('should render default ui', () => { | ||
const icon = render(<Icon type="os-search-role"/>); | ||
expect(icon).toMatchSnapshot(); | ||
}); | ||
}) |
Oops, something went wrong.