Skip to content

Commit c017b97

Browse files
committed
Remove promise in test to support node 0.10
1 parent 0b7f121 commit c017b97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/override-deserializer.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ describe('hook in to modify deserialization process', function () {
113113
.expect(201)
114114
.end(function (err, res) {
115115
expect(err).to.equal(null);
116-
Comment.findById(1).then(function (comment) {
116+
Comment.findById(1, function (err, comment) {
117+
expect(err).to.equal(undefined);
117118
expect(comment.postId).to.equal(2);
118119
done();
119120
});

0 commit comments

Comments
 (0)