Update snapshot
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
a2cd7764b7
commit
c5dfd6c7d7
2 changed files with 72 additions and 44 deletions
|
@ -1,8 +1,14 @@
|
||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||||
|
|
||||||
exports[`<EmojiSelector /> renders correctly 1`] = `
|
exports[`<EmojiSelector /> renders correctly 1`] = `
|
||||||
|
<div
|
||||||
|
onBlur={[Function]}
|
||||||
|
onFocus={[Function]}
|
||||||
|
tabIndex="-1"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
className="emoji-react-selector"
|
className="emoji-react-selector"
|
||||||
|
onBlur={[Function]}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
className="emoji-react-selector__emoji"
|
className="emoji-react-selector__emoji"
|
||||||
|
@ -11,6 +17,9 @@ exports[`<EmojiSelector /> renders correctly 1`] = `
|
||||||
"__html": "<img draggable=\\"false\\" class=\\"emojione\\" alt=\\"👍\\" title=\\":+1:\\" src=\\"/emoji/1f44d.svg\\" />",
|
"__html": "<img draggable=\\"false\\" class=\\"emojione\\" alt=\\"👍\\" title=\\":+1:\\" src=\\"/emoji/1f44d.svg\\" />",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
onClick={[Function]}
|
||||||
|
onKeyUp={[Function]}
|
||||||
|
tabIndex={-1}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
className="emoji-react-selector__emoji"
|
className="emoji-react-selector__emoji"
|
||||||
|
@ -19,6 +28,9 @@ exports[`<EmojiSelector /> renders correctly 1`] = `
|
||||||
"__html": "<img draggable=\\"false\\" class=\\"emojione\\" alt=\\"❤\\" title=\\":heart:\\" src=\\"/emoji/2764.svg\\" />",
|
"__html": "<img draggable=\\"false\\" class=\\"emojione\\" alt=\\"❤\\" title=\\":heart:\\" src=\\"/emoji/2764.svg\\" />",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
onClick={[Function]}
|
||||||
|
onKeyUp={[Function]}
|
||||||
|
tabIndex={-1}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
className="emoji-react-selector__emoji"
|
className="emoji-react-selector__emoji"
|
||||||
|
@ -27,6 +39,9 @@ exports[`<EmojiSelector /> renders correctly 1`] = `
|
||||||
"__html": "<img draggable=\\"false\\" class=\\"emojione\\" alt=\\"😆\\" title=\\":laughing:\\" src=\\"/emoji/1f606.svg\\" />",
|
"__html": "<img draggable=\\"false\\" class=\\"emojione\\" alt=\\"😆\\" title=\\":laughing:\\" src=\\"/emoji/1f606.svg\\" />",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
onClick={[Function]}
|
||||||
|
onKeyUp={[Function]}
|
||||||
|
tabIndex={-1}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
className="emoji-react-selector__emoji"
|
className="emoji-react-selector__emoji"
|
||||||
|
@ -35,6 +50,9 @@ exports[`<EmojiSelector /> renders correctly 1`] = `
|
||||||
"__html": "<img draggable=\\"false\\" class=\\"emojione\\" alt=\\"😮\\" title=\\":open_mouth:\\" src=\\"/emoji/1f62e.svg\\" />",
|
"__html": "<img draggable=\\"false\\" class=\\"emojione\\" alt=\\"😮\\" title=\\":open_mouth:\\" src=\\"/emoji/1f62e.svg\\" />",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
onClick={[Function]}
|
||||||
|
onKeyUp={[Function]}
|
||||||
|
tabIndex={-1}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
className="emoji-react-selector__emoji"
|
className="emoji-react-selector__emoji"
|
||||||
|
@ -43,6 +61,9 @@ exports[`<EmojiSelector /> renders correctly 1`] = `
|
||||||
"__html": "<img draggable=\\"false\\" class=\\"emojione\\" alt=\\"😢\\" title=\\":cry:\\" src=\\"/emoji/1f622.svg\\" />",
|
"__html": "<img draggable=\\"false\\" class=\\"emojione\\" alt=\\"😢\\" title=\\":cry:\\" src=\\"/emoji/1f622.svg\\" />",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
onClick={[Function]}
|
||||||
|
onKeyUp={[Function]}
|
||||||
|
tabIndex={-1}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
className="emoji-react-selector__emoji"
|
className="emoji-react-selector__emoji"
|
||||||
|
@ -51,6 +72,10 @@ exports[`<EmojiSelector /> renders correctly 1`] = `
|
||||||
"__html": "<img draggable=\\"false\\" class=\\"emojione\\" alt=\\"😩\\" title=\\":weary:\\" src=\\"/emoji/1f629.svg\\" />",
|
"__html": "<img draggable=\\"false\\" class=\\"emojione\\" alt=\\"😩\\" title=\\":weary:\\" src=\\"/emoji/1f629.svg\\" />",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
onClick={[Function]}
|
||||||
|
onKeyUp={[Function]}
|
||||||
|
tabIndex={-1}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -4,7 +4,10 @@ import EmojiSelector from '../emoji_selector';
|
||||||
|
|
||||||
describe('<EmojiSelector />', () => {
|
describe('<EmojiSelector />', () => {
|
||||||
it('renders correctly', () => {
|
it('renders correctly', () => {
|
||||||
const component = createComponent(<EmojiSelector />);
|
const children = <EmojiSelector />;
|
||||||
|
children.__proto__.addEventListener = () => {};
|
||||||
|
|
||||||
|
const component = createComponent(children, {}, true);
|
||||||
const tree = component.toJSON();
|
const tree = component.toJSON();
|
||||||
expect(tree).toMatchSnapshot();
|
expect(tree).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue