Skip to content

Conversation

kaladay
Copy link
Contributor

@kaladay kaladay commented Nov 28, 2018

Add and implement tests.

Controller tests were fully implemented to the extend that I was able to.
Repository tests were only partially implemented.
Directive tests were not implemented.

Case-sensitive OS's may have issues when filenames do not follow the appropriate case-sensitivity.
These were accidentally added at some point.
Implement mock objects and repo objects with structures that match what is expected.
Add 'types' list mocking where needed (adding getTypes() function).
User Service mock should now provide the expected functionality and return more appropriate results.
The allowableRoles() method only ever gets defined if either isAdmin() or isManager() is true.
The final else case will never trigger.
All controllers now have an initializeController() method.
This implements the basic tests to see if WsApi.fetch() or similar are called.
More work will be needed for additional tests.
Anything that had a problem has been commented out for later completion.
@kaladay kaladay requested review from jcreel, jeremythuff, jsavell, a user and rladdusaw November 28, 2018 18:46
@coveralls
Copy link

coveralls commented Nov 28, 2018

Coverage Status

Coverage increased (+65.1%) to 78.975% when pulling 388afe4 on dame-sprint-oct-tests into 497e6fd on master.

@kaladay kaladay force-pushed the dame-sprint-oct-tests branch 2 times, most recently from 27dd9c1 to 721d7fe Compare November 29, 2018 23:30
@ghost
Copy link

ghost commented Nov 30, 2018

This is ready to merge.

@jcreel jcreel merged commit f32900c into master Dec 4, 2018
@jcreel jcreel deleted the dame-sprint-oct-tests branch December 4, 2018 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants