hunk.code_window:     expect(offHandler).to.equal(onHandler);
     });
     it('should pass through options to addEventListener', () => {
       let actualOptions;
       const expectedOptions = { capture: true, passive: true };
  
hunk.labels: keep keep add keep keep keep
hunk.after_edit:   it('should error on invalid event targets', () => {
       const obj = {
         addListener: () => {
           //noop
         }
       };
       const subscribe = () => Observable.fromEvent(<any>obj, 'click').subscribe();
       expect(subscribe).to.throw(TypeError, 'Invalid event target');
     });
  
hunk.file_path: spec/observables/fromEvent-spec.ts
hunk.type: add
file: --require source-map-support/register
  --require spec/support/mocha-setup-node.js
  --require spec-js/helpers/test-helper.js
  --require spec-js/helpers/tests2png/diagram-test-runner.js
  --ui spec-js/helpers/testScheduler-ui.js
  
  --reporter dot
  
  --recursive
  --timeout 5000