mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
removes colon from suvery list item
This commit is contained in:
parent
bfe00d46ad
commit
c0a2a69835
@ -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>
|
||||
)}
|
||||
|
||||
@ -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);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user