Created
June 20, 2016 19:31
-
-
Save JohannesHoppe/c7715b947ef121cd58c9ffd4d4290fd5 to your computer and use it in GitHub Desktop.
Substitute for ROUTER_FAKE_PROVIDERS @angular/[email protected] test workaround
This file contains hidden or 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
/* workaround, see https://github.com/angular/vladivostok/issues/45 */ | |
import { Router, ActivatedRoute } from '@angular/router'; | |
class MockRouter { createUrlTree() {} } | |
class MockActivatedRoute { } | |
beforeEachProviders(() => [ | |
provide(Router, { useClass: MockRouter }), | |
provide(ActivatedRoute, { useClass: MockActivatedRoute }) | |
]); | |
/* workaround */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see https://github.com/angular/vladivostok/issues/45