Skip to content

Instantly share code, notes, and snippets.

@ralyodio

ralyodio/test.js Secret

Created December 15, 2012 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralyodio/a7e319572c8512849e09 to your computer and use it in GitHub Desktop.
Save ralyodio/a7e319572c8512849e09 to your computer and use it in GitHub Desktop.
var cfg = require('../config')
, mongoose = require('mongoose')
, db = mongoose.connect(cfg.mongo.uri, cfg.mongo.db)
, User = require('../models/user')
, Item = require('../models/item')
describe('User', function(){
beforeEach(function(done){
//clear out db
User.remove(done);
...
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment