Skip to content

Commit

Permalink
updated .findById test
Browse files Browse the repository at this point in the history
  • Loading branch information
abarnhard committed Jul 25, 2014
1 parent 42ba758 commit b623a7b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/unit/apartment.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,7 @@ describe('Apartment', function(){
Apartment.find({}, function(apts){
//console.log(apts[0].unit);
Apartment.findById(apts[0]._id, function(apt){
// TODO Ask Chyld about WTF is going on here
// the _id returned from the check isn't the same type
// returned from the search
//expect(apt._id).to.equal(id);
expect(apt._id).to.eql(apts[0]._id);
expect(apt.unit).to.equal('A1');
expect(apt).to.be.instanceof(Apartment);
done();
Expand Down

0 comments on commit b623a7b

Please sign in to comment.