mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-02-06 09:55:50 +00:00
* Add distance to group profile if location is defined * Fix snapshot tests in 'webapp/pages/groups/_id/_slug.spec.js' * Fix prop Vue warning in test 'webapp/pages/groups/_id/_slug.spec.js' * reuse locationFragement for groups * use better order on locationFragement parameters * moved LocationInfo Component to correct place as its used in Group & User related context * use size prop * reduce changeset * update snapshots * remove computed property & simplify component * more tests & updated snapshots --------- Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
100 lines
1.3 KiB
Plaintext
100 lines
1.3 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`LocationInfo distance renders with distance 1`] = `
|
|
<div>
|
|
<div
|
|
class="location-info size-base"
|
|
>
|
|
<div
|
|
class="location"
|
|
>
|
|
<span
|
|
class="base-icon"
|
|
>
|
|
<!---->
|
|
</span>
|
|
|
|
Paris
|
|
|
|
</div>
|
|
|
|
<div
|
|
class="distance"
|
|
>
|
|
|
|
location.distance
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`LocationInfo distance renders without distance 1`] = `
|
|
<div>
|
|
<div
|
|
class="location-info size-base"
|
|
>
|
|
<div
|
|
class="location"
|
|
>
|
|
<span
|
|
class="base-icon"
|
|
>
|
|
<!---->
|
|
</span>
|
|
|
|
Paris
|
|
|
|
</div>
|
|
|
|
<!---->
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`LocationInfo size renders in base size 1`] = `
|
|
<div>
|
|
<div
|
|
class="location-info size-base"
|
|
>
|
|
<div
|
|
class="location"
|
|
>
|
|
<span
|
|
class="base-icon"
|
|
>
|
|
<!---->
|
|
</span>
|
|
|
|
Paris
|
|
|
|
</div>
|
|
|
|
<!---->
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`LocationInfo size renders in small size 1`] = `
|
|
<div>
|
|
<div
|
|
class="location-info size-base"
|
|
>
|
|
<div
|
|
class="location"
|
|
>
|
|
<span
|
|
class="base-icon"
|
|
>
|
|
<!---->
|
|
</span>
|
|
|
|
Paris
|
|
|
|
</div>
|
|
|
|
<!---->
|
|
</div>
|
|
</div>
|
|
`;
|