Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Jun 2, 2020
1 parent 81414fb commit 909407f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const Description = React.memo<DescriptionProps>(
aria-label={i18n.TIMELINE_DESCRIPTION}
data-test-subj="timeline-description"
fullWidth={true}
onChange={e => updateDescription({ id: timelineId, description: e.target.value })}
onChange={(e) => updateDescription({ id: timelineId, description: e.target.value })}
placeholder={i18n.DESCRIPTION}
spellCheck={true}
value={description}
Expand All @@ -108,7 +108,7 @@ export const Name = React.memo<NameProps>(({ timelineId, title, updateTitle }) =
<NameField
aria-label={i18n.TIMELINE_TITLE}
data-test-subj="timeline-title"
onChange={e => updateTitle({ id: timelineId, title: e.target.value })}
onChange={(e) => updateTitle({ id: timelineId, title: e.target.value })}
placeholder={i18n.UNTITLED_TIMELINE}
spellCheck={true}
value={title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ describe('Properties', () => {
</ReduxStoreProvider>
);

wrapper
.find('[data-test-subj="settings-gear"]')
.at(0)
.simulate('click');
wrapper.find('[data-test-subj="settings-gear"]').at(0).simulate('click');

expect(wrapper.find('[data-test-subj="timeline-properties"]').exists()).toEqual(true);
expect(wrapper.find('button[data-test-subj="attach-timeline-case"]').prop('disabled')).toEqual(
Expand Down Expand Up @@ -113,10 +110,7 @@ describe('Properties', () => {
</ReduxStoreProvider>
);

wrapper
.find('[data-test-subj="settings-gear"]')
.at(0)
.simulate('click');
wrapper.find('[data-test-subj="settings-gear"]').at(0).simulate('click');

expect(wrapper.find('button[data-test-subj="attach-timeline-case"]').prop('disabled')).toEqual(
true
Expand Down Expand Up @@ -206,12 +200,7 @@ describe('Properties', () => {
</ReduxStoreProvider>
);

expect(
wrapper
.find('[data-test-subj="timeline-title"]')
.first()
.props().value
).toEqual(title);
expect(wrapper.find('[data-test-subj="timeline-title"]').first().props().value).toEqual(title);
});

test('it renders the date picker with the lock icon', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const PropertiesRightComponent: React.FC<Props> = ({
</EuiFlexItem>

{showUsersView
? usersViewing.map(user => (
? usersViewing.map((user) => (
// Hide the hard-coded elastic user avatar as the 7.2 release does not implement
// support for multi-user-collaboration as proposed in elastic/ingest-dev#395
<HiddenFlexItem key={user}>
Expand Down

0 comments on commit 909407f

Please sign in to comment.