From fa348634674f23d872f994758f46b477d60ef7bb Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Mon, 8 Apr 2013 16:36:48 +1000 Subject: [PATCH] Added enough posts that pagination is necessary. chapter12-1 --- server/fixtures.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/server/fixtures.js b/server/fixtures.js index 92369e15..cb13c8d1 100644 --- a/server/fixtures.js +++ b/server/fixtures.js @@ -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 + }); + } } \ No newline at end of file