{"action":"opened","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/2161","repository_url":"https://api.github.com/repos/mochajs/mocha","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/2161/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/2161/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/2161/events","html_url":"https://github.com/mochajs/mocha/issues/2161","id":141805787,"number":2161,"title":"Example doesn't work from mocha website doesn't work for me","user":{"login":"howdoicomputer","id":6774447,"avatar_url":"https://avatars.githubusercontent.com/u/6774447?v=3","gravatar_id":"","url":"https://api.github.com/users/howdoicomputer","html_url":"https://github.com/howdoicomputer","followers_url":"https://api.github.com/users/howdoicomputer/followers","following_url":"https://api.github.com/users/howdoicomputer/following{/other_user}","gists_url":"https://api.github.com/users/howdoicomputer/gists{/gist_id}","starred_url":"https://api.github.com/users/howdoicomputer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howdoicomputer/subscriptions","organizations_url":"https://api.github.com/users/howdoicomputer/orgs","repos_url":"https://api.github.com/users/howdoicomputer/repos","events_url":"https://api.github.com/users/howdoicomputer/events{/privacy}","received_events_url":"https://api.github.com/users/howdoicomputer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-18T08:40:33Z","updated_at":"2016-03-18T08:40:33Z","closed_at":null,"body":"```\r\ndescribe('Blog Model', function() {\r\n  describe('#save()', function() {\r\n    it('should save', function (done) {\r\n      let blogpost = new Blog({\r\n        title: 'Foobar',\r\n        plaintextcontent: 'foobar',\r\n        htmlcontent: '<p> Hello! </p>'\r\n      })\r\n\r\n      blogpost.save(function (err) {\r\n        if (err) throw err\r\n        done()\r\n      })\r\n    })\r\n  })\r\n})\r\n```\r\n\r\nI get `Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.`\r\n\r\nShouldn't the `done()` callback be executed? This is probably the wrong place to ask this question but, man, I feel stupid and frustrated every time I try to use Mocha. My code works inside of my controllers.\r\n\r\nI'm using Mongoose and my model looks like this:\r\n\r\n```\r\n'use strict'\r\n\r\nvar mongoose = require('mongoose')\r\nvar uniqueValidator = require('mongoose-unique-validator')\r\n\r\nlet blogSchema = new mongoose.Schema({\r\n  title: { type: String, required: true, unique: true },\r\n  htmlcontent: String,\r\n  plaintextcontent: String,\r\n  date: { type: Date, default: Date.now },\r\n  published: Boolean\r\n})\r\n\r\nblogSchema.plugin(uniqueValidator)\r\n\r\nmodule.exports = mongoose.model('Blog', blogSchema\r\n```\r\n\r\nAnd how I'm consuming it in my controllers:\r\n\r\n```\r\n  postBlogNew: function (req, res) {\r\n    let content = req.body.blogcontent\r\n\r\n    let blogpost = new Blog({\r\n      title: req.body.blogtitle,\r\n      plaintextcontent: content,\r\n      htmlcontent: markdown.toHTML(content)\r\n    })\r\n\r\n    blogpost.save(function (err) {\r\n      if (err) {\r\n        req.flash('errors', { msg: 'Error saving blog post' })\r\n      } else {\r\n        req.flash('success', { msg: 'Success! Blog post created' })\r\n        return res.redirect('/blog')\r\n      }\r\n    })\r\n  },\r\n```\r\n\r\nEverything works like how I want it to except I can't figure out how to unit test it.\r\n\r\nMocha `2.3.4`\r\nMongoose `4.3.5`"}}