Skip to content

Instantly share code, notes, and snippets.

@topnotch48
Last active April 22, 2018 13:56
Show Gist options
  • Save topnotch48/b2a776026f94b16a9573f708a2a041cd to your computer and use it in GitHub Desktop.
Save topnotch48/b2a776026f94b16a9573f708a2a041cd to your computer and use it in GitHub Desktop.
import {resetFakeAsyncZone} from './fake_async';
import {TestBed} from './test_bed';
declare var global: any;
const _global = <any>(typeof window === 'undefined' ? global : window);
// Reset the test providers and the fake async zone before each test.
if (_global.beforeEach) {
_global.beforeEach(() => {
TestBed.resetTestingModule();
resetFakeAsyncZone();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment