Skip to content

Commit

Permalink
updated model format to match apx-mongoose
Browse files Browse the repository at this point in the history
  • Loading branch information
nullivex committed Dec 17, 2013
1 parent e2c8108 commit 7300710
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions test/model.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
var mongoose = require('mongoose')
, schema

mongoose.plugin(require('../lib/mongoose-list'))

schema = new mongoose.Schema({
exports.name = 'model'
exports.description = 'Testing model'
exports.model = mongoose.model('Test',new mongoose.Schema({
name: {
type: String,
require: true
}
})

module.exports = mongoose.model('Test',schema)
}))
2 changes: 1 addition & 1 deletion test/mongoose-list.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe('MongooseList',function(){
var Model = require('./model')
var Model = require('./model').model
describe('[Single Record]',function(){
var doc
before(function(done){
Expand Down

0 comments on commit 7300710

Please sign in to comment.