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>,
<DataListCell key="type"> <DataListCell key="type">
<Label>{i18n._(t`Type:`)}</Label> <Label>{i18n._(t`Type`)}</Label>
{question.type} {question.type}
</DataListCell>, </DataListCell>,
<DataListCell key="default"> <DataListCell key="default">
<Label>{i18n._(t`Default:`)}</Label> <Label>{i18n._(t`Default`)}</Label>
{[question.type].includes('password') && ( {[question.type].includes('password') && (
<span>{i18n._(t`encrypted`).toUpperCase()}</span> <span>{i18n._(t`encrypted`).toUpperCase()}</span>
)} )}

View File

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