'myPipe' adlı özel bir pipom var. Ben 'myPipe' boru benim birim test ts hata bulunamadı bulunamadı. Benim .spec.tsAçısal 2 Birim Testi: Özel Boru hatası Boru bulunamadı
içe ve beyan ne
Pleas tavsiye burada .spec.ts
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { MyComponent } from './main-page-carousel.component';
describe('CarouselComponent',() => {
let component: MyComponent ;
let fixture: ComponentFixture<MyComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ MyComponent ],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(MyComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create',() => {
expect(component).toBeTruthy();
});
});
teşekkürler olduğunu!
'myPipe' hakkında konuşuyorsunuz, ancak testiniz bir' CarouselComponent' ile ilgili? yerine benim "MyPipe" almamalısınız? –
Ayrıca bu "boru bulunamadı" girişini de kontrol edin: http://stackoverflow.com/questions/39007130/the-pipe-could-not-be-found-angular2-custom-pipe/40770507#40770507 – Karl