Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Eliminate yarn test spam #1024

Merged
merged 13 commits into from
Apr 3, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
skip passing showEmailAddress from ProfilePopver to the Popover boots…
…trap component
  • Loading branch information
lieut-data committed Mar 28, 2018
commit 73b5fcbc03dd12b41063c4cbd84bcfb97b748d2b
1 change: 1 addition & 0 deletions components/profile_popover/profile_popover.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ class ProfilePopover extends React.Component {
delete popoverProps.hasMention;
delete popoverProps.dispatch;
delete popoverProps.enableWebrtc;
delete popoverProps.showEmailAddress;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Injected by the connector but wasn't removed, like enableWebrtc, and ended up incorrectly as a DOM property.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we are not using showEmailAddress at all, so, the solution would be remove that from the connect function.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooh, I like that better -- somehow, I thought this was being passed in via a plugin, but you're right that it's only part of the pluggable unit tests.


let webrtc;
const userMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
Expand Down
2 changes: 0 additions & 2 deletions tests/plugins/__snapshots__/pluggable.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,13 @@ exports[`plugins/Pluggable should match snapshot with no overridden component 1`
bsClass="popover"
id="user-profile-popover"
placement="right"
showEmailAddress={true}
theme={Object {}}
title="@undefined"
>
<div
className="popover right"
id="user-profile-popover"
role="tooltip"
showEmailAddress={true}
style={
Object {
"display": "block",
Expand Down