Permalink
Browse files

add test case

  • Loading branch information...
luicfer
luicfer committed Nov 24, 2015
1 parent 56f207f commit b04d36b173c473538803b0bb27dc0a9aca6aebc8
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/model.js
@@ -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();
});
});

0 comments on commit b04d36b

Please sign in to comment.