generated from eea/volto-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from eea/develop
Release
- Loading branch information
Showing
8 changed files
with
221 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[ -n "$CI" ] && exit 0 | ||
yarn lint-staged |
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
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
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 renderer from 'react-test-renderer'; | ||
import SearchWidget from './SearchWidget'; | ||
describe('Test SearchWidget', () => { | ||
it('check html content', () => { | ||
const component = renderer.create(<SearchWidget />); | ||
const json = component.toJSON(); | ||
expect(json).toMatchSnapshot(); | ||
}); | ||
}); |
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,72 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Test SearchWidget check html content 1`] = ` | ||
<div | ||
id="blockform-fieldset-default" | ||
> | ||
<div | ||
className="ui segment attached" | ||
fluid={true} | ||
> | ||
<div | ||
className="ui fluid card" | ||
onClick={[Function]} | ||
> | ||
<div | ||
className="content" | ||
fluid={true} | ||
> | ||
<div | ||
className="header" | ||
> | ||
Citation | ||
</div> | ||
<div | ||
className="description" | ||
fluid={true} | ||
> | ||
<div | ||
className="ui fluid search" | ||
onBlur={[Function]} | ||
onFocus={[Function]} | ||
onMouseDown={[Function]} | ||
> | ||
<div | ||
className="ui fluid right icon input" | ||
> | ||
<input | ||
autoComplete="off" | ||
className="prompt" | ||
id="field-footnote" | ||
onChange={[Function]} | ||
onClick={[Function]} | ||
tabIndex="0" | ||
type="text" | ||
value="" | ||
/> | ||
<i | ||
aria-hidden="true" | ||
className="search icon" | ||
onClick={[Function]} | ||
/> | ||
</div> | ||
<div | ||
className="results transition" | ||
> | ||
<div | ||
className="message empty" | ||
> | ||
<div | ||
className="header" | ||
> | ||
No results found. | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
`; |
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