Skip to content

Instantly share code, notes, and snippets.

@8lane
Created October 2, 2018 12:47
Show Gist options
  • Save 8lane/9a475e6c2f30c96d11c2bd6b2bcd13f1 to your computer and use it in GitHub Desktop.
Save 8lane/9a475e6c2f30c96d11c2bd6b2bcd13f1 to your computer and use it in GitHub Desktop.
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`When displaying the Chat Header component should display correctly 1`] = `
<header
className="lc-header"
data-test="lc-header"
>
<button
className="lc-header__close-btn"
data-test="lc-header__close-btn"
onClick={[MockFunction]}
type="button"
>
<svg
className="lc-header__cancel-icon"
height={20}
id="lc-header__cancel-icon"
width={20}
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
>
<path
d="M11.4,10l6.5-6.5c0.2-0.2,0.2-0.5,0-0.7l-0.7-0.7C17,2,16.7,2,16.5,2.2L10,8.6L3.5,2.2C3.4,2,3,2,2.8,2.2L2.2,2.8 C2,3,2,3.4,2.2,3.5L8.6,10l-6.5,6.5C2,16.7,2,17,2.2,17.2l0.7,0.7c0.2,0.2,0.5,0.2,0.7,0l6.5-6.5l6.5,6.5c0.2,0.2,0.5,0.2,0.7,0 l0.7-0.7c0.2-0.2,0.2-0.5,0-0.7L11.4,10z"
fill="white"
/>
</svg>
</button>
<span
className="lc-header__title"
>
Live chat
</span>
<button
className="lc-header__minimize-btn"
data-test="lc-header__minimize-btn"
onClick={[MockFunction]}
type="button"
>
<span
className="sr-only"
>
Minimize
</span>
<span
className="lc-header__minimize-wrapper"
>
<svg
className="lc-header__minimize-icon"
height={2}
viewBox="0 0 12 2"
width={12}
x="0px"
xmlSpace="preserve"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
y="0px"
>
<path
d="M0.5,0h11C11.8,0,12,0.2,12,0.5v1C12,1.8,11.8,2,11.5,2h-11C0.2,2,0,1.8,0,1.5v-1C0,0.2,0.2,0,0.5,0z"
fill="#fff"
id="path"
/>
</svg>
<svg
className="lc-header__chevron-icon"
height={20}
viewBox="0 0 20 10"
width={20}
x="0px"
xmlSpace="preserve"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
y="0px"
>
<path
d="M19.2,0.2l0.7,0.8c0.2,0.2,0.2,0.5,0,0.7c0,0,0,0,0,0l-9.5,8.2c-0.2,0.2-0.5,0.2-0.7,0L0.2,1.6 C0,1.5-0.1,1.1,0.1,0.9c0,0,0,0,0,0l0.7-0.8C1,0,1.3-0.1,1.5,0.1L10,7.5l8.5-7.4C18.7-0.1,19,0,19.2,0.2z"
fill="white"
id="path-1_1_"
/>
</svg>
</span>
</button>
</header>
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment