Termine agregando la f a describe. porque en esta clase salieron muchos errores de otras pruebas.
import { routes } from './app-routing.module';
import { PinsComponent } from './components/pins/pins.component';
fdescribe('App Routing',() =>{
beforeAll(()=> {
console.log('beforeAll');
});
beforeEach(()=> {
console.log('beforeEach');
});
afterAll(()=> {
console.log('afterAll');
});
afterEach(()=> {
console.log('afterEach');
});
it('Should have app as path', () =>{
expect(routes[0].path).toBe('app');
expect(routes[0].children).toContain({
path:'pins',
component: PinsComponent
})
})
it('Should match the childrens', () =>{
expect(routes[0].children).toContain({
path:'pins',
component: PinsComponent
})
})
})
驴Quieres ver m谩s aportes, preguntas y respuestas de la comunidad?