schedulejs
Version:
Schedule tasks, meetings, appointments, etc
38 lines (28 loc) • 1.02 kB
JavaScript
var schedule = require('../../index'),
later = require('later'),
should = require('should');
describe('Tasks', function() {
describe('setters', function() {
it('should support custom id function', function() {
should.exist(schedule.tasks().id);
});
it('should support custom duration function', function() {
should.exist(schedule.tasks().duration);
});
it('should support a custom available function', function() {
should.exist(schedule.tasks().available);
});
it('should support a custom resources function', function() {
should.exist(schedule.tasks().resources);
});
it('should support a custom dependsOn function', function() {
should.exist(schedule.tasks().dependsOn);
});
it('should support a custom minSchedule function', function() {
should.exist(schedule.tasks().minSchedule);
});
it('should support a custom priority function', function() {
should.exist(schedule.tasks().priority);
});
});
});