@@ -25,7 +25,7 @@ var tweetSchema = new Schema({
2525 text : String ,
2626 actor : { type : Schema . Types . ObjectId , ref : 'User' } ,
2727 bg : String ,
28- link : { type : Schema . Types . ObjectId , ref : 'Link' } ,
28+ link : { type : Schema . Types . ObjectId , ref : 'Link' }
2929} ) ;
3030
3131tweetSchema . plugin ( StreamMongoose . activity ) ;
@@ -37,7 +37,7 @@ tweetSchema.statics.pathsToPopulate = function() {
3737tweetSchema . methods . activityNotify = function ( ) {
3838 return [
3939 stream . FeedManager . getFeed ( 'notification' , '1' ) ,
40- stream . FeedManager . getFeed ( 'notification' , '2' ) ,
40+ stream . FeedManager . getFeed ( 'notification' , '2' )
4141 ] ;
4242} ;
4343
@@ -136,7 +136,7 @@ describe('Backend', function() {
136136 backend . serializeActivities ( activities2 ) ;
137137 var aggregatedActivities = [
138138 { actor_count : 1 , activities : activities } ,
139- { actor_count : 1 , activities : activities2 } ,
139+ { actor_count : 1 , activities : activities2 }
140140 ] ;
141141 backend
142142 . enrichAggregatedActivities ( aggregatedActivities )
@@ -172,7 +172,7 @@ describe('Backend', function() {
172172 var activity = tweet . createActivity ( ) ;
173173 backend . serializeActivities ( [ activity ] ) ;
174174 var aggregatedActivities = [
175- { actor_count : 1 , activities : [ activity ] } ,
175+ { actor_count : 1 , activities : [ activity ] }
176176 ] ;
177177 backend
178178 . enrichAggregatedActivities ( aggregatedActivities )
@@ -201,7 +201,7 @@ describe('Backend', function() {
201201 backend . serializeActivities ( [ activity ] ) ;
202202 var aggregatedActivities = [
203203 { actor_count : 1 , activities : [ activity ] } ,
204- { actor_count : 1 , activities : [ activity , activity ] } ,
204+ { actor_count : 1 , activities : [ activity , activity ] }
205205 ] ;
206206 backend
207207 . enrichAggregatedActivities ( aggregatedActivities )
@@ -258,14 +258,8 @@ describe('Backend', function() {
258258 . then ( function ( enriched ) {
259259 enriched . should . length ( 1 ) ;
260260 enriched [ 0 ] . should . have . property ( 'actor' ) ;
261- enriched [ 0 ] [ 'actor' ] . should . have . property (
262- '_id' ,
263- self . actor . _id ,
264- ) ;
265- enriched [ 0 ] . should . have . property (
266- 'foreign_id' ,
267- 'Tweet:' + tweet . _id ,
268- ) ;
261+ enriched [ 0 ] [ 'actor' ] . should . have . property ( '_id' , self . actor . _id ) ;
262+ enriched [ 0 ] . should . have . property ( 'foreign_id' , 'Tweet:' + tweet . _id ) ;
269263 } ) ;
270264 } ) ;
271265
@@ -290,10 +284,7 @@ describe('Backend', function() {
290284 . then ( function ( enriched ) {
291285 enriched . should . length ( 1 ) ;
292286 enriched [ 0 ] . should . have . property ( 'actor' ) ;
293- enriched [ 0 ] [ 'actor' ] . should . have . property (
294- '_id' ,
295- self . actor . _id ,
296- ) ;
287+ enriched [ 0 ] [ 'actor' ] . should . have . property ( '_id' , self . actor . _id ) ;
297288 enriched [ 0 ] . should . have . property ( 'object' ) ;
298289 enriched [ 0 ] [ 'object' ] . should . have . property ( '_id' , tweet . _id ) ;
299290 enriched [ 0 ] [ 'object' ] . should . have . property ( 'text' , tweet . text ) ;
@@ -318,10 +309,7 @@ describe('Backend', function() {
318309 . then ( function ( tweet ) {
319310 var activity = tweet . createActivity ( ) ;
320311 tweet . getStreamBackend ( ) . serializeActivities ( [ activity ] ) ;
321- activity . should . have . property (
322- 'actor' ,
323- 'User:' + tweet . actor . _id ,
324- ) ;
312+ activity . should . have . property ( 'actor' , 'User:' + tweet . actor . _id ) ;
325313 activity . should . have . property ( 'link' , 'Link:' + tweet . link . _id ) ;
326314 activity . should . have . property ( 'bg' , 'bgvalue' ) ;
327315 activity . should . have . property ( 'object' , 'Tweet:' + tweet . _id ) ;
@@ -366,7 +354,7 @@ describe('Backend', function() {
366354 . then ( function ( ) {
367355 var activities = [
368356 tweet1 . createActivity ( ) ,
369- tweet2 . createActivity ( ) ,
357+ tweet2 . createActivity ( )
370358 ] ;
371359
372360 return backend . enrichActivities ( activities ) ;
@@ -375,9 +363,7 @@ describe('Backend', function() {
375363 enriched . should . length ( 2 ) ;
376364 enriched [ 0 ] . should . have . property ( 'foreign_id' ) ;
377365 enriched [ 1 ] . should . have . property ( 'foreign_id' ) ;
378- enriched [ 0 ] [ 'foreign_id' ] . should . not . equal (
379- enriched [ 1 ] [ 'foreign_id' ] ,
380- ) ;
366+ enriched [ 0 ] [ 'foreign_id' ] . should . not . equal ( enriched [ 1 ] [ 'foreign_id' ] ) ;
381367 } ) ;
382368 } ) ;
383369} ) ;
@@ -401,7 +387,7 @@ describe('Tweet', function() {
401387 var activity = tweet . createActivity ( ) ;
402388 activity . should . have . property ( 'to' , [
403389 'notification:1' ,
404- 'notification:2' ,
390+ 'notification:2'
405391 ] ) ;
406392 } ) ;
407393
0 commit comments