-
Notifications
You must be signed in to change notification settings - Fork 1
#3-Time clock find project #61
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
Conversation
component.changeFilterProject.emit('angular'); | ||
component.filterProject = 'angular'; | ||
component.changeFilterValue(); | ||
expect(component.filterProject).toEqual('angular'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that is not a good test because you are assigning the value in the variable and after you wait that your expect has that value.
You should test that emit has been called, you can is that example in project-list test.
}); | ||
|
||
it('test method of pipe', () => { | ||
expect(new FilterProjectPipe().transform([], '')).toEqual([]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
improve the test, you can create a mock with projects data and test the transform method.
{ | ||
"id": 3, | ||
"name": "Facebook", | ||
"details": "It's a good app to play Lottery", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change the detail, please :)
"@angular-devkit/build-angular": "^0.900.5", | ||
"@angular/cli": "~9.0.4", | ||
"@angular-devkit/build-angular": "^0.901.0", | ||
"@angular/cli": "^9.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is wrong.
Este PR remplaza al anterior ya que hubo conflictos con la nueva estructura.
Se ha añadido el buscador tanto en Time Clock y Projects.
Se ha usado el servicio ProjectService para poblar la lista de proyectos activos en la vista de Time Clock.