fix(participants): Update specs to reflect that spacing is now in CSS

This commit is contained in:
Ben Gotow 2016-02-19 10:28:02 -08:00
parent 9392422760
commit e5bf37cf9e
2 changed files with 3 additions and 3 deletions

View file

@ -33,8 +33,8 @@ class EmojiPicker extends React.Component {
this.props.emojiOptions.forEach((emojiOption, i) => {
const emojiChar = emoji.get(emojiOption);
const emojiClass = emojiIndex === i ? "btn btn-icon emoji-option" : "btn btn-icon";
emojis.push(<button onMouseDown={() => this.onMouseDown(emojiChar)} className={emojiClass}>{emojiChar} :{emojiOption}:</button>);
emojis.push(<br />);
emojis.push(<button key={emojiChar} onMouseDown={() => this.onMouseDown(emojiChar)} className={emojiClass}>{emojiChar} :{emojiOption}:</button>);
emojis.push(<br key={emojiChar+" br"} />);
})
}
return (

View file

@ -90,7 +90,7 @@ describe "MessageParticipants", ->
it "uses full names", ->
to = ReactTestUtils.findRenderedDOMComponentWithClass(@participants, "to-contact")
expect(React.findDOMNode(to).innerText.trim()).toEqual "User Two <user2@nylas.com>"
expect(React.findDOMNode(to).innerText.trim()).toEqual "User Two<user2@nylas.com>"
# TODO: We no longer display "to everyone"