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
just remove showEmailAddress in the profile popover unit tests
  • Loading branch information
lieut-data committed Apr 3, 2018
commit 688c6b856e5a93a40520aa443795139b4f5a7b78
2 changes: 0 additions & 2 deletions components/profile_popover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ import ProfilePopover from './profile_popover.jsx';
function mapStateToProps(state, ownProps) {
const config = state.entities.general.config;

const showEmailAddress = config.ShowEmailAddress === 'true';
const enableWebrtc = config.EnableWebrtc === 'true';

return {
...ownProps,
showEmailAddress,
enableWebrtc,
};
}
Expand Down
3 changes: 0 additions & 3 deletions tests/plugins/__snapshots__/pluggable.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ exports[`plugins/Pluggable should match snapshot with no overridden component 1`
enableWebrtc={true}
hasMention={false}
isRHS={false}
showEmailAddress={true}
src="src"
theme={Object {}}
user={
Expand All @@ -69,15 +68,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
1 change: 0 additions & 1 deletion tests/plugins/pluggable.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ describe('plugins/Pluggable', () => {
general: {
config: {
EnableWebrtc: 'true',
ShowEmailAddress: 'true',
},
},
},
Expand Down