Skip to content

Commit

Permalink
bug fixed, removing logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Apodaca committed Apr 12, 2018
1 parent 2bd0e66 commit 97af373
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions app/controllers/departments.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,8 @@ module.exports = {

supervisorsIndex(req, res) {
let supervisors;
console.log('--> 0 <--');
DepartmentSupervisors.findByDepartmentIDs([req.params.department])
.then((resp) => {
console.log('--> 1 <--');
supervisors = resp;

// Limit options to only users already added to the department
Expand All @@ -98,7 +96,6 @@ module.exports = {
active: true,
});
}).then((users) => {
console.log('--> 2 <--');
// Just sorting by last name here
const members = users.sort((a, b) => a.last > b.last);

Expand Down
2 changes: 0 additions & 2 deletions test/app/departmentsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,11 @@ describe('Departments View', () => {

should.exist(users);
const supervisorsUrl = `/org/departments/${department.department_id}/supervisors`;
console.log(`--> loading ${supervisorsUrl}`);
owner.get(supervisorsUrl)
.expect(200)
.end((err, res) => {
users.forEach((user) => {
const lastFirst = `${user.last}, ${user.first}`;
console.log(`--> checking ${lastFirst}`);
res.text.should.match(RegExp(lastFirst));
});
done(err);
Expand Down

0 comments on commit 97af373

Please sign in to comment.