@@ -1592,7 +1592,7 @@ describe('manipulation', function() {
15921592 function ( done ) {
15931593 var now = Date . now ( ) ;
15941594
1595- var myCustomModel = CustomModel . create ( function ( err , m ) {
1595+ CustomModel . create ( function ( err , m ) {
15961596 should . not . exists ( err ) ;
15971597 m . createdAt . should . be . instanceOf ( Date ) ;
15981598 ( m . createdAt >= now ) . should . be . true ;
@@ -1614,8 +1614,8 @@ describe('manipulation', function() {
16141614
16151615 it ( 'should report \'$now\' as default value for string property' ,
16161616 function ( done ) {
1617- var myCustomModel = CustomModel . create ( function ( err , m ) {
16181617 should . not . exists ( err ) ;
1618+ CustomModel . create ( function ( err , m ) {
16191619 m . now . should . be . instanceOf ( String ) ;
16201620 m . now . should . equal ( '$now' ) ;
16211621 } ) ;
@@ -1637,8 +1637,8 @@ describe('manipulation', function() {
16371637 it ( 'should generate current time when "defaultFn" is "now"' ,
16381638 function ( done ) {
16391639 var now = Date . now ( ) ;
1640- var inst = CustomModel . create ( function ( err , m ) {
16411640 should . not . exists ( err ) ;
1641+ CustomModel . create ( function ( err , m ) {
16421642 m . now . should . be . instanceOf ( Date ) ;
16431643 m . now . should . be . within ( now , now + 200 ) ;
16441644 done ( ) ;
@@ -1676,8 +1676,8 @@ describe('manipulation', function() {
16761676 } ) ;
16771677
16781678 it ( 'should generate a new id when "defaultfn" is "uuid"' , function ( done ) {
1679- var inst = CustomModel . create ( function ( err , m ) {
16801679 should . not . exists ( err ) ;
1680+ CustomModel . create ( function ( err , m ) {
16811681 m . guid . should . match ( UUID_REGEXP ) ;
16821682 done ( ) ;
16831683 } ) ;
@@ -1695,7 +1695,7 @@ describe('manipulation', function() {
16951695 } ) ;
16961696
16971697 it ( 'should generate a new id when "defaultfn" is "uuidv4"' , function ( done ) {
1698- var inst = CustomModel . create ( function ( err , m ) {
1698+ CustomModel . create ( function ( err , m ) {
16991699 should . not . exists ( err ) ;
17001700 m . guid . should . match ( UUID_REGEXP ) ;
17011701 done ( ) ;
0 commit comments