Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('controller test - promiseConnectEmployeeToSchedule', function () {
- it('ConnectTest', function () {
- var schedule = undefined;
- var employee = undefined;
- return controller.getSchedule('5a12af41d8e1b719acb2fc8e')
- .then(function (res) {
- schedule = res;
- return controller.getEmployee('5a12909a88469042c0606047')
- })
- .then(function (emp) {
- employee = emp;
- })
- .then(function () {
- controller.connectEmployeeToSchedule(schedule, employee)
- })
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement