diff --git a/mocha/tests/planning_element_test.js b/mocha/tests/planning_element_test.js index ce23cd7971..787ccf48e3 100644 --- a/mocha/tests/planning_element_test.js +++ b/mocha/tests/planning_element_test.js @@ -132,12 +132,14 @@ describe('Planning Element', function(){ }); describe('responsible', function () { + it('should be null by default'); it('should get the responsible'); it('should allow get of responsible name'); it('should return undefined if responsible or responsible name are not set'); }); describe('assignee', function () { + it('should be null by default'); it('should allow get of assignee name'); it('should return undefined if assignee or assignee name are not set'); }); diff --git a/mocha/tests/project_test.js b/mocha/tests/project_test.js index b9a9d2e9e6..4e59320db5 100644 --- a/mocha/tests/project_test.js +++ b/mocha/tests/project_test.js @@ -46,33 +46,62 @@ describe('Project', function(){ it('should sort pes with same start and end and name by id'); }); - describe('grouping', function () { - - }); - describe('responsible', function () { - it('TODO'); + it('should be null by default'); + it('should get the responsible'); + it('should allow get of responsible name'); + it('should return undefined if responsible or responsible name are not set'); }); + describe('assignee', function () { - it('TODO'); + it('should always return undefined'); }); + describe('status', function () { - it('TODO'); + it('should return null if no reporting'); + it('should return reporting status'); }); + describe('subElements', function () { - it('TODO'); + it('returns pes before reporters'); + it('returns the same pes as getPlanningElements'); + it('filters the reporters correctly'); }); + describe('PlanningElements', function () { - it('TODO'); + it('should return pes of project'); + it('should sort without date to the beginning'); + it('should sort by date'); + it('should sort with only an end date as if it had a start date equal to the end date'); + it('should sort with same start by end date'); + it('should sort with same start and end by name'); + it('should sort with same start and end and name by id'); }); + describe('Reporters', function () { - it('TODO'); + it('should return reporters'); + it('should sort without date to the beginning'); + it('should sort by date'); + it('should sort with same start by end date'); + it('should sort with same start and end by name'); + it('should sort with same start and end and name by id'); + + + describe('groups', function () { + it('should sort project with same group next to each other'); + it('should sort groups by name'); + it('should sort groups by explicit order if given'); + it('should sort projects with other group to the end'); + }); }); + describe('Parent', function () { - it('TODO'); + it('should return null if no parent given'); + it('should return the correct parent'); }); + describe('Url', function () { - it('TODO'); + it('should return the correct url'); }); });