Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Observable.observeOn() not included in "lite" distribution (contrary to documentation) #1272

@zebulonj

Description

@zebulonj

The library documentation indicates that the .observeOn(...) method of the Observable class is included in the rx.lite distribution (see here). However, a Subject (which is documented to inherit from the Observable class) created from the "lite" distribution does not include the observeOn method as an instance operator.

Version: 4.1.0

Reproduce:

import test from 'tape';

import Rx, { Subject } from 'rx/dist/rx.lite';

test( "rxjs...", sub => {
  sub.test( "...should support the observeOn method via the lite distribution.", assert => {
    assert.plan( 2 );

    const subject = new Subject();
    assert.ok( subject, "A subject should have been instantiated." );
    assert.equal( typeof subject.observeOn, 'function', "The subject should have an observeOn method." );

    assert.end();
  });
});

Output:

✓ rxjs...
⨯ ...should support the observeOn method via the lite distribution.
  not ok 2 The subject should have an observeOn method.
    ---
      operator: equal
      expected: 'function'
      actual:   'undefined'
      at: Test.<anonymous> ([redacted])
    ...

# tests 2
# pass  1
⨯ fail  1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions