@@ -24,7 +24,7 @@ Comments.add({
2424 title : String ,
2525 date : Date ,
2626 body : String ,
27- comments : [ Comments ]
27+ comments : [ Comments ] ,
2828} ) ;
2929
3030const BlogPost = new Schema ( {
@@ -34,7 +34,7 @@ const BlogPost = new Schema({
3434 date : Date ,
3535 meta : {
3636 date : Date ,
37- visitors : Number
37+ visitors : Number ,
3838 } ,
3939 published : Boolean ,
4040 mixed : { } ,
@@ -44,15 +44,15 @@ const BlogPost = new Schema({
4444 comments : [ Comments ] ,
4545 def : {
4646 type : String ,
47- default : 'kandinsky'
48- }
47+ default : 'kandinsky' ,
48+ } ,
4949} ) ;
5050
5151const commentData = {
5252 title : 'test comment' ,
5353 date : new Date ( ) ,
5454 body : 'this be some crazzzyyyyy text that would go in a comment' ,
55- comments : [ { title : 'second level' , date : new Date ( ) , body : 'texttt' } ]
55+ comments : [ { title : 'second level' , date : new Date ( ) , body : 'texttt' } ] ,
5656} ;
5757
5858const blogData = {
@@ -62,16 +62,16 @@ const blogData = {
6262 date : new Date ( ) ,
6363 meta : {
6464 date : new Date ( ) ,
65- visitors : 9001
65+ visitors : 9001 ,
6666 } ,
6767 published : true ,
6868 mixed : {
69- thisIsRandom : true
69+ thisIsRandom : true ,
7070 } ,
7171 numbers : [ 1 , 2 , 7 , 10 , 23432 ] ,
7272 tags : [ 'test' , 'BENCH' , 'things' , 'more things' ] ,
7373 def : 'THANGS!!!' ,
74- comments : [ ]
74+ comments : [ ] ,
7575} ;
7676
7777const blogData10 = utils . clone ( blogData ) ;
@@ -100,35 +100,35 @@ suite
100100 const BlogPost = mongoose . model ( 'BlogPost' ) ;
101101 const bp = new BlogPost ( ) ;
102102 bp . init ( blogData ) ;
103- }
103+ } ,
104104 } )
105105 . add ( 'Casting - Embedded Docs - 10 Docs' , {
106106 fn : function ( ) {
107107 const BlogPost = mongoose . model ( 'BlogPost' ) ;
108108 const bp = new BlogPost ( ) ;
109109 bp . init ( blogData10 ) ;
110- }
110+ } ,
111111 } )
112112 . add ( 'Casting - Embedded Docs - 100 Docs' , {
113113 fn : function ( ) {
114114 const BlogPost = mongoose . model ( 'BlogPost' ) ;
115115 const bp = new BlogPost ( ) ;
116116 bp . init ( blogData100 ) ;
117- }
117+ } ,
118118 } )
119119 . add ( 'Casting - Embedded Docs - 1000 Docs' , {
120120 fn : function ( ) {
121121 const BlogPost = mongoose . model ( 'BlogPost' ) ;
122122 const bp = new BlogPost ( ) ;
123123 bp . init ( blogData1000 ) ;
124- }
124+ } ,
125125 } )
126126 . add ( 'Casting - Embedded Docs - 10000 Docs' , {
127127 fn : function ( ) {
128128 const BlogPost = mongoose . model ( 'BlogPost' ) ;
129129 const bp = new BlogPost ( ) ;
130130 bp . init ( blogData10000 ) ;
131- }
131+ } ,
132132 } )
133133 . on ( 'cycle' , function ( evt ) {
134134 if ( process . env . MONGOOSE_DEV || process . env . PULL_REQUEST ) {
0 commit comments