secret
Created

  • Download Gist
test.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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);
...
});
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.