-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Mock fails #1711
Comments
Hi @syrok0010, Thanks for the report. Might you provide a repo / stackblitz with a min example? |
Great thanks!!! |
Hi @syrok0010, for me it fails a bit differently:
might you fix this part? I'll be working on that too. |
yep - got the error
working on the fix. |
So, unfortunately nothing can be done on Because the issue is in declarations of the service, and they are loaded on the import of A test without import {AppComponent} from './app.component';
import {AppModule} from "./app.module";
import {TestBed} from "@angular/core/testing";
describe('AppComponent', () => {
beforeEach(() => TestBed.configureTestingModule({
imports: [AppModule],
declarations: [AppComponent],
}));
it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const app = fixture.componentInstance;
expect(app).toBeTruthy();
});
}); I'll close this issue for now. Feel free to reopen it if nothing has been discovered in taiga-family/taiga-ui#1257. |
The mock doesn't work with the following configuration
and the following
with the same error
The text was updated successfully, but these errors were encountered: