Skip to content

Commit

Permalink
Added enough posts that pagination is necessary.
Browse files Browse the repository at this point in the history
chapter12-1
  • Loading branch information
tmeasday committed Oct 19, 2015
1 parent 156b40e commit fa34863
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions server/fixtures.js
Expand Up @@ -54,4 +54,15 @@ if (Posts.find().count() === 0) {
submitted: new Date(now - 12 * 3600 * 1000), submitted: new Date(now - 12 * 3600 * 1000),
commentsCount: 0 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.