mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 19:47:03 -04:00

Co-authored-by: Philip Molares <philip.molares@udo.edu Co-authored-by: Erik Michelson <github@erik.michelson.eu> Signed-off-by: Philip Molares <philip.molares@udo.edu Signed-off-by: Erik Michelson <github@erik.michelson.eu> Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
106 lines
2 KiB
Text
106 lines
2 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`UserAvatar adds additionalClasses props to wrapping span 1`] = `
|
|
<div>
|
|
<span
|
|
class="d-inline-flex align-items-center testClass"
|
|
>
|
|
<img
|
|
alt="common.avatarOf"
|
|
class="rounded user-image"
|
|
height="20"
|
|
src="https://example.com/test.png"
|
|
title="common.avatarOf"
|
|
width="20"
|
|
/>
|
|
<span
|
|
class="ml-2 mr-1 user-line-name"
|
|
>
|
|
Boaty McBoatFace
|
|
</span>
|
|
</span>
|
|
</div>
|
|
`;
|
|
|
|
exports[`UserAvatar does not show names if showName prop is false 1`] = `
|
|
<div>
|
|
<span
|
|
class="d-inline-flex align-items-center "
|
|
>
|
|
<img
|
|
alt="common.avatarOf"
|
|
class="rounded user-image"
|
|
height="20"
|
|
src="https://example.com/test.png"
|
|
title="common.avatarOf"
|
|
width="20"
|
|
/>
|
|
</span>
|
|
</div>
|
|
`;
|
|
|
|
exports[`UserAvatar renders the user avatar correctly 1`] = `
|
|
<div>
|
|
<span
|
|
class="d-inline-flex align-items-center "
|
|
>
|
|
<img
|
|
alt="common.avatarOf"
|
|
class="rounded user-image"
|
|
height="20"
|
|
src="https://example.com/test.png"
|
|
title="common.avatarOf"
|
|
width="20"
|
|
/>
|
|
<span
|
|
class="ml-2 mr-1 user-line-name"
|
|
>
|
|
Boaty McBoatFace
|
|
</span>
|
|
</span>
|
|
</div>
|
|
`;
|
|
|
|
exports[`UserAvatar renders the user avatar in size lg 1`] = `
|
|
<div>
|
|
<span
|
|
class="d-inline-flex align-items-center "
|
|
>
|
|
<img
|
|
alt="common.avatarOf"
|
|
class="rounded user-image"
|
|
height="30"
|
|
src="https://example.com/test.png"
|
|
title="common.avatarOf"
|
|
width="30"
|
|
/>
|
|
<span
|
|
class="ml-2 mr-1 user-line-name"
|
|
>
|
|
Boaty McBoatFace
|
|
</span>
|
|
</span>
|
|
</div>
|
|
`;
|
|
|
|
exports[`UserAvatar renders the user avatar in size sm 1`] = `
|
|
<div>
|
|
<span
|
|
class="d-inline-flex align-items-center "
|
|
>
|
|
<img
|
|
alt="common.avatarOf"
|
|
class="rounded user-image"
|
|
height="16"
|
|
src="https://example.com/test.png"
|
|
title="common.avatarOf"
|
|
width="16"
|
|
/>
|
|
<span
|
|
class="ml-2 mr-1 user-line-name"
|
|
>
|
|
Boaty McBoatFace
|
|
</span>
|
|
</span>
|
|
</div>
|
|
`;
|