hunk.code_window: import { Observable } from '../../Observable';
   import { _switch, SwitchSignature } from '../../operator/switch';
   Observable.prototype.switch = _switch;
   declare module '../../Observable' {
     interface Observable<T> {
       switch: SwitchSignature<T>;
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit: Observable.prototype._switch = _switch;
  
hunk.file_path: src/add/operator/switch.ts
hunk.type: add
file: var RxOld = require('rx');
  var RxNew = require('../../../../index');
  
  module.exports = function never(suite) {
    var oldNeverWithImmediateScheduler = RxOld.Observable.never();
    var newNeverWithImmediateScheduler = RxNew.Observable.never();
  
    function _next(x) { }
    function _error(e) { }
    function _complete() { }
    // add tests
    return suite
      .add('old never with immediate scheduler', function () {
        oldNeverWithImmediateScheduler.subscribe(_next, _error, _complete);
      })
      .add('new never with immediate scheduler', function () {
        newNeverWithImmediateScheduler.subscribe(_next, _error, _complete);
      });
  };