Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing tests that don't make any sense #3013

Merged
merged 2 commits into from
Oct 30, 2017
Merged

Removing tests that don't make any sense #3013

merged 2 commits into from
Oct 30, 2017

Conversation

benlesh
Copy link
Member

@benlesh benlesh commented Oct 27, 2017

We had a few slip past the radar on us that weren't really testing anything of value. See the commit messages for more detail.

Test wasn't testing anything, it was passing the partition function
itself to the expect(), which doesn't really do anything of value.
These tests were really testing the rethrowing capability of Observable, as triggered when the scheduler was flushed. The call directly above the flush to `repeat` does nothing but create a new observable that is never subscribed to
@benlesh benlesh requested a review from kwonoj October 27, 2017 15:10
@rxjs-bot
Copy link

Messages
📖

CJS: 1346.1KB, global: 746.2KB (gzipped: 120.0KB), min: 145.7KB (gzipped: 31.2KB)

Generated by 🚫 dangerJS

@coveralls
Copy link

coveralls commented Oct 27, 2017

Coverage Status

Coverage decreased (-0.06%) to 97.317% when pulling 8f94d07 on benlesh:test_cleanup into 040d951 on ReactiveX:master.

@@ -255,11 +255,6 @@ describe('Observable.prototype.partition', () => {
expectSubscriptions(e1.subscriptions).toBe([e1subs, e1subs]);
});

it('should throw without predicate', () => {
const e1 = hot('--a-b---a------d----');
expect(e1.partition).to.throw();
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't we just correct it into expect(() => e1.partition.subscribe)).to.throw?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure it should throw... it doesn't throw now and none of our other methods throw... for example, if you don't provide a predicate to filter.

Perhaps they should throw... but it seems unrelated.

@kwonoj
Copy link
Member

kwonoj commented Oct 30, 2017

🚢

@benlesh benlesh merged commit abf1627 into ReactiveX:master Oct 30, 2017
@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants