Last active
April 22, 2018 13:56
-
-
Save topnotch48/b2a776026f94b16a9573f708a2a041cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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