Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating new app with --routing options results in failing tests #95

Closed
colinskow opened this issue Nov 7, 2017 · 1 comment · Fixed by #111
Closed

Generating new app with --routing options results in failing tests #95

colinskow opened this issue Nov 7, 2017 · 1 comment · Fixed by #111
Assignees

Comments

@colinskow
Copy link

When generating a new app with the --routing option enabled, app.component.spec.ts needs to be modified for tests to pass:

import { RouterTestingModule } from '@angular/router/testing';
...
beforeEach(
    async(() => {
      TestBed.configureTestingModule({
        imports: [RouterTestingModule],
        declarations: [AppComponent]
      }).compileComponents();
    })
  );
@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants