Skip to content

Commit cc994b4

Browse files
committed
Adds test for Model.get() without callback
1 parent eb14541 commit cc994b4

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎test/integration2/model-get.js‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,16 @@ describe("Model.get()", function() {
190190
});
191191
});
192192
});
193+
194+
describe("without callback", function () {
195+
before(setup(true));
196+
197+
it("should throw", function (done) {
198+
(function () {
199+
Person.get(1);
200+
}).should.throw();
201+
202+
return done();
203+
});
204+
});
193205
});

0 commit comments

Comments
 (0)