Permalink
Browse files

Added enough posts that pagination is necessary.

chapter12-1
  • Loading branch information...
tmeasday committed Apr 8, 2013
1 parent 156b40e commit fa348634674f23d872f994758f46b477d60ef7bb
Showing with 11 additions and 0 deletions.
  1. +11 −0 server/fixtures.js
View
@@ -54,4 +54,15 @@ if (Posts.find().count() === 0) {
submitted: new Date(now - 12 * 3600 * 1000),
commentsCount: 0
});
+
+ for (var i = 0; i < 10; i++) {
+ Posts.insert({
+ title: 'Test post #' + i,
+ author: sacha.profile.name,
+ userId: sacha._id,
+ url: 'http://google.com/?q=test-' + i,
+ submitted: new Date(now - i * 3600 * 1000 + 1),
+ commentsCount: 0
+ });
+ }
}

0 comments on commit fa34863

Please sign in to comment.