|
@@ -1,12 +1,4 @@
|
|
|
-/**
|
|
|
- * @file
|
|
|
- *
|
|
|
- *
|
|
|
- * User: marand
|
|
|
- * Date: 30/08/15
|
|
|
- * Time: 11:33
|
|
|
- */
|
|
|
-
|
|
|
+// Fixture data.
|
|
|
if (Posts.find().count() === 0) {
|
|
|
var now = new Date().getTime();
|
|
|
|
|
@@ -22,10 +14,10 @@ if (Posts.find().count() === 0) {
|
|
|
var sacha = Meteor.users.findOne(sachaId);
|
|
|
|
|
|
var telescopeId = Posts.insert({
|
|
|
- title: "Introducing Telescope",
|
|
|
+ title: 'Introducing Telescope',
|
|
|
userId: sacha._id,
|
|
|
author: sacha.profile.name,
|
|
|
- url: "http://sachagreif.com/introducing-telescope",
|
|
|
+ url: 'http://sachagreif.com/introducing-telescope/',
|
|
|
submitted: new Date(now - 7 * 3600 * 1000),
|
|
|
commentsCount: 2
|
|
|
});
|
|
@@ -47,19 +39,19 @@ if (Posts.find().count() === 0) {
|
|
|
});
|
|
|
|
|
|
Posts.insert({
|
|
|
- title: "Meteor",
|
|
|
+ title: 'Meteor',
|
|
|
userId: tom._id,
|
|
|
author: tom.profile.name,
|
|
|
- url: "http://meteor.com",
|
|
|
+ url: 'http://meteor.com',
|
|
|
submitted: new Date(now - 10 * 3600 * 1000),
|
|
|
commentsCount: 0
|
|
|
});
|
|
|
|
|
|
Posts.insert({
|
|
|
- title: "The Meteor book",
|
|
|
+ title: 'The Meteor Book',
|
|
|
userId: tom._id,
|
|
|
author: tom.profile.name,
|
|
|
- url: "http://themeteorbook.com",
|
|
|
+ url: 'http://themeteorbook.com',
|
|
|
submitted: new Date(now - 12 * 3600 * 1000),
|
|
|
commentsCount: 0
|
|
|
});
|