removes colon from suvery list item

This commit is contained in:
Alex Corey 2020-08-25 13:32:57 -04:00
parent bfe00d46ad
commit c0a2a69835
2 changed files with 4 additions and 4 deletions

View File

@ -110,11 +110,11 @@ function SurveyListItem({
</DataListCell>,
<DataListCell key="type">
<Label>{i18n._(t`Type:`)}</Label>
<Label>{i18n._(t`Type`)}</Label>
{question.type}
</DataListCell>,
<DataListCell key="default">
<Label>{i18n._(t`Default:`)}</Label>
<Label>{i18n._(t`Default`)}</Label>
{[question.type].includes('password') && (
<span>{i18n._(t`encrypted`).toUpperCase()}</span>
)}

View File

@ -30,13 +30,13 @@ describe('<SurveyListItem />', () => {
.find('b')
.at(0)
.text()
).toBe('Type:');
).toBe('Type');
expect(
wrapper
.find('b')
.at(1)
.text()
).toBe('Default:');
).toBe('Default');
expect(wrapper.find('DataListCheck').length).toBe(1);
expect(wrapper.find('DataListCell').length).toBe(3);
});