test(ct-angular): fix all angular tests

This commit is contained in:
Younes Jaaidi 2024-02-23 01:36:52 +01:00
parent ea9f612869
commit 6ecfba218e
No known key found for this signature in database
GPG key ID: 3126C5717BDF3241

View file

@ -12,7 +12,10 @@ export type HooksConfig = {
};
beforeMount<HooksConfig>(async ({ hooksConfig, TestBed }) => {
TestBed.configureTestingModule({
imports: [ButtonComponent],
});
if (hooksConfig?.routing)
TestBed.configureTestingModule({
providers: [provideRouter(routes)],