Permalink
Browse files

test, example

  • Loading branch information...
1 parent 35b1bf0 commit e9c1c9e18dcea6b48eae5bb1778c8df33b179c1c lowol committed Oct 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 examples/index.js
  2. +1 −1 test/test.js
View
@@ -1,5 +1,5 @@
var mongoose = require('mongoose'),
- FormatDate = require('../formatdate');
+ FormatDate = mongoose.Schema.Types.FormatDate = require('../formatdate');
/**
* example
View
@@ -3,7 +3,7 @@
*/
var assert = require('assert'),
mongoose = require('mongoose'),
- FormatDate = require('../formatdate');
+ FormatDate = mongoose.Schema.Types.FormatDate = require('../formatdate');
var conn = mongoose.createConnection('mongodb://localhost/formatdate-test');

0 comments on commit e9c1c9e

Please sign in to comment.