more test cases for pes and projects.

pull/701/head
Nils Kenneweg 11 years ago committed by Till Breuer
parent d123d4afe1
commit 6683be1740
  1. 2
      mocha/tests/planning_element_test.js
  2. 53
      mocha/tests/project_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');
});

@ -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');
});
});

Loading…
Cancel
Save