setup.js 307 B

123456789
  1. import { Observable } from '../src/Observable.js';
  2. beforeEach(() => {
  3. global.Observable = Observable;
  4. global.hostError = null;
  5. let $extensions = Object.getOwnPropertySymbols(Observable)[1];
  6. let { hostReportError } = Observable[$extensions];
  7. hostReportError.log = (e => global.hostError = e);
  8. });