Commit 287d4dc7 authored by Maxime REYROLLE's avatar Maxime REYROLLE

it should return 2 services

parent b629907b
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {ActivatedRoute} from '@angular/router';
import {Observable} from 'rxjs/Observable';
import {By} from '@angular/platform-browser';
import {DashboardComponent} from './dashboard.component';
import {DashboardService} from '../shared/dashboard.service';
......@@ -35,4 +36,10 @@ describe('DashboardComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
it('should return 2 services', () => {
fixture.detectChanges();
const services = fixture.debugElement.queryAll(By.css('.services'));
expect(services.length).toEqual(2);
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment