diff --git a/spec/operators/single-spec.ts b/spec/operators/single-spec.ts index 8229e6f7f7..db7b720f3f 100644 --- a/spec/operators/single-spec.ts +++ b/spec/operators/single-spec.ts @@ -78,8 +78,8 @@ describe('single operator', () => { it('should raise error from empty predicate if observable emits error', () => { rxTest.run(({ hot, expectObservable, expectSubscriptions }) => { const e1 = hot(' --a--b^--#'); - const e1subs = ' ^--!'; - const expected = '---#'; + const e1subs = ' ^--!'; + const expected = ' ---#'; expectObservable(e1.pipe(single())).toBe(expected); expectSubscriptions(e1.subscriptions).toBe(e1subs); diff --git a/src/internal/operators/single.ts b/src/internal/operators/single.ts index 9a95ce5b9b..cf6c28cb81 100644 --- a/src/internal/operators/single.ts +++ b/src/internal/operators/single.ts @@ -8,15 +8,6 @@ import { NotFoundError } from '../util/NotFoundError'; const defaultPredicate = () => true; -export function single(): MonoTypeOperatorFunction; -export function single( - predicate: (value: T, index: number) => boolean -): MonoTypeOperatorFunction; -/** @deprecated Providing `source` via the third argument to the predicate will be removed in upcoming versions. Use a closure. */ -export function single( - predicate: (value: T, index: number, source: Observable) => boolean -): MonoTypeOperatorFunction; - /** * Returns an observable that asserts that only one value is * emitted from the observable that matches the predicate. If no