Skip to content

Commit

Permalink
refactor(test): remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Oct 28, 2017
1 parent 9e3427a commit b9ab446
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/document.hooks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -773,9 +773,7 @@ describe('document: hooks:', function() {

var Book = mongoose.model('gh5738', bookSchema);

var book = new Book({});

book.title = 'Professional AngularJS';
var book = new Book({ title: 'Professional AngularJS' });
book.save(function(error) {
assert.ok(error);
assert.equal(error.message, 'woops!');
Expand Down

0 comments on commit b9ab446

Please sign in to comment.