Test was failing as I was not returning an error.

This commit is contained in:
gaba
2017-05-08 16:05:40 -07:00
parent 743a96cd21
commit 96cd5197e3
5 changed files with 40 additions and 14 deletions
+9
View File
@@ -92,6 +92,15 @@ const CommentSchema = new Schema({
}
});
// Add the indexes on the comment tag.
CommentSchema.index({
'id': 1,
'tags.id': 1
}, {
unique: true,
background: false
});
// Comment model.
const Comment = mongoose.model('Comment', CommentSchema);