From 73007108f8e3a423fc375bfb34ddf30f018eb479 Mon Sep 17 00:00:00 2001 From: Bryan Tong Date: Tue, 17 Dec 2013 13:53:59 -0700 Subject: [PATCH] updated model format to match apx-mongoose --- test/model.js | 10 ++++------ test/mongoose-list.test.js | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/test/model.js b/test/model.js index 58374a8..50038e0 100644 --- a/test/model.js +++ b/test/model.js @@ -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) \ No newline at end of file +})) \ No newline at end of file diff --git a/test/mongoose-list.test.js b/test/mongoose-list.test.js index 707ca60..f190091 100644 --- a/test/mongoose-list.test.js +++ b/test/mongoose-list.test.js @@ -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){