This is an automated email from the git hooks/post-receive script. New commit to branch feature/253-tuiles in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 176c389b66c1e1e3d1d3b948fe59e06b59ec5c71 Author: jcouteau <couteau@codelutin.com> Date: Thu Jan 16 16:18:19 2020 +0100 Ajout de cas de tests --- pollen-ui-riot-js/stories/Card.stories.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pollen-ui-riot-js/stories/Card.stories.js b/pollen-ui-riot-js/stories/Card.stories.js index e662b8f5..33703704 100644 --- a/pollen-ui-riot-js/stories/Card.stories.js +++ b/pollen-ui-riot-js/stories/Card.stories.js @@ -22,6 +22,19 @@ const startedPoll = {title: "Poll title", status: "VOTING", votes: 12}; +const noDescPoll = {title: "Poll title", + startDate: new Date("December 25, 1995"), + endDate: new Date("December 25, 2100"), + status: "VOTING", + votes: 12}; + +const emptyDescPoll = {title: "Poll title", + description: "", + startDate: new Date("December 25, 1995"), + endDate: new Date("December 25, 2100"), + status: "VOTING", + votes: 12}; + const startedPollNoEnd = {title: "Poll title", description: "Lorem ipsum description", startDate: new Date("December 25, 1995"), @@ -183,3 +196,13 @@ export const pollReal = () => { riot.mixin(i18nHelper); return mount("pollcardreboot", {poll: realPoll}); }; +export const pollNoDescription = () => { + riot.mixin(uiHelper); + riot.mixin(i18nHelper); + return mount("pollcardreboot", {poll: noDescPoll}); +}; +export const pollEmptyDescription = () => { + riot.mixin(uiHelper); + riot.mixin(i18nHelper); + return mount("pollcardreboot", {poll: emptyDescPoll}); +}; -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.