Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
luicfer committed Nov 24, 2015
1 parent 56f207f commit b04d36b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/model.js
Expand Up @@ -130,6 +130,14 @@ describe("model", function () {
should(err).not.be.ok;
data.should.hasOwnProperty("key1").eql(3);
done();
},true);
});

it("findById return null", function(done) {
Model.findById(100, function(err, data) {
should(err).not.be.ok;
should.not.exist(data);
done();
});
});

Expand Down

0 comments on commit b04d36b

Please sign in to comment.