Skip to content

Commit 24fffd6

Browse files
committed
#3 Added importation filter project
1 parent f4304fe commit 24fffd6

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/app/modules/time-clock/components/project-list-hover/project-list-hover.component.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { async, ComponentFixture, TestBed, inject } from '@angular/core/testing'
33
import { ProjectListHoverComponent } from './project-list-hover.component';
44
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
55
import { ProjectService } from 'src/app/modules/project-management/services/project.service';
6+
import { FilterProjectPipe } from 'src/app/modules/shared/pipes/filter-project/filter-project.pipe';
67

78
describe('ProjectListHoverComponent', () => {
89
let component: ProjectListHoverComponent;
@@ -11,7 +12,7 @@ describe('ProjectListHoverComponent', () => {
1112
beforeEach(async(() => {
1213
TestBed.configureTestingModule({
1314
imports: [HttpClientTestingModule],
14-
declarations: [ProjectListHoverComponent],
15+
declarations: [ProjectListHoverComponent, FilterProjectPipe],
1516
providers: [ProjectService]
1617
}).compileComponents();
1718
}));
@@ -22,12 +23,12 @@ describe('ProjectListHoverComponent', () => {
2223
fixture.detectChanges();
2324
});
2425

25-
it('should be created', () => {
26+
it('service should be created', () => {
2627
const service: ProjectService = TestBed.get(ProjectService);
2728
expect(service).toBeTruthy();
2829
});
2930

30-
it('should have add function', () => {
31+
it('should have getProjects function', () => {
3132
const service: ProjectService = TestBed.get(ProjectService);
3233
expect(service.getProjects).toBeTruthy();
3334
});

src/app/modules/time-clock/pages/time-clock.component.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { TimeClockComponent } from './time-clock.component';
55
import { ProjectListHoverComponent } from '../components';
66
import { HttpClientTestingModule } from '@angular/common/http/testing';
77
import { ProjectService } from '../../project-management/services/project.service';
8+
import { FilterProjectPipe } from '../../shared/pipes/filter-project/filter-project.pipe';
89

910
describe('TimeClockComponent', () => {
1011
let component: TimeClockComponent;
@@ -14,7 +15,7 @@ describe('TimeClockComponent', () => {
1415
beforeEach(async(() => {
1516
TestBed.configureTestingModule({
1617
imports: [HttpClientTestingModule],
17-
declarations: [TimeClockComponent, ProjectListHoverComponent],
18+
declarations: [TimeClockComponent, ProjectListHoverComponent, FilterProjectPipe],
1819
providers: [ProjectService]
1920
}).compileComponents();
2021
}));
@@ -26,12 +27,12 @@ describe('TimeClockComponent', () => {
2627
fixture.detectChanges();
2728
});
2829

29-
it('should be created', () => {
30+
it('service should be created', () => {
3031
const service: ProjectService = TestBed.get(ProjectService);
3132
expect(service).toBeTruthy();
3233
});
3334

34-
it('should have add function', () => {
35+
it('should have getProject function', () => {
3536
const service: ProjectService = TestBed.get(ProjectService);
3637
expect(service.getProjects).toBeTruthy();
3738
});

0 commit comments

Comments
 (0)