Skip to content

Conversation

@ryanstreur
Copy link

I am confident that I haven't yet grokked what I need to grok. Strictly speaking this code works, but it's smelly to me.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 95.616% when pulling c4eb27c on ryanstreur:first into ee1b135 on nmuldavin:master.


first._name = 'first';

export default first;
Copy link
Owner

Choose a reason for hiding this comment

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

We'll need it to propagate errors and complete messages as well. What if it errors or completes before the first one?

it('emits the first element of an Observable', () => {
expect(first(Observable.of(1, 2, 3))).to.eql(1);
});
});
Copy link
Owner

Choose a reason for hiding this comment

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

you can add test cases for what I mentioned above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants