From 546a2938a664e8bf8f2d7ca57d9653a35d826321 Mon Sep 17 00:00:00 2001 From: Rob Cameron Date: Thu, 8 Oct 2020 16:41:50 -0700 Subject: [PATCH] Update cell mocks --- .../BlogPostCell/BlogPostCell.mock.js | 7 +++++-- .../BlogPostsCell/BlogPostsCell.mock.js | 17 ++++++++++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/web/src/components/BlogPostCell/BlogPostCell.mock.js b/web/src/components/BlogPostCell/BlogPostCell.mock.js index c689622..e9838b8 100644 --- a/web/src/components/BlogPostCell/BlogPostCell.mock.js +++ b/web/src/components/BlogPostCell/BlogPostCell.mock.js @@ -1,6 +1,9 @@ // Define your own mock data here: export const standard = (/* vars, { ctx, req } */) => ({ - blogPost: { - id: 42, + post: { + id: 1, + title: 'First post', + body: + 'Neutra tacos hot chicken prism raw denim, put a bird on it enamel pin post-ironic vape cred DIY. Street art next level umami squid. Hammock hexagon glossier 8-bit banjo. Neutra la croix mixtape echo park four loko semiotics kitsch forage chambray. Semiotics salvia selfies jianbing hella shaman. Letterpress helvetica vaporware cronut, shaman butcher YOLO poke fixie hoodie gentrify woke heirloom.', }, }) diff --git a/web/src/components/BlogPostsCell/BlogPostsCell.mock.js b/web/src/components/BlogPostsCell/BlogPostsCell.mock.js index 70d4d6a..3719dd0 100644 --- a/web/src/components/BlogPostsCell/BlogPostsCell.mock.js +++ b/web/src/components/BlogPostsCell/BlogPostsCell.mock.js @@ -1,6 +1,17 @@ // Define your own mock data here: export const standard = (/* vars, { ctx, req } */) => ({ - blogPosts: { - id: 42, - }, + posts: [ + { + id: 1, + title: 'First post', + body: + 'Neutra tacos hot chicken prism raw denim, put a bird on it enamel pin post-ironic vape cred DIY. Street art next level umami squid. Hammock hexagon glossier 8-bit banjo. Neutra la croix mixtape echo park four loko semiotics kitsch forage chambray. Semiotics salvia selfies jianbing hella shaman. Letterpress helvetica vaporware cronut, shaman butcher YOLO poke fixie hoodie gentrify woke heirloom.', + }, + { + id: 2, + title: 'Second post', + body: + 'Master cleanse gentrify irony put a bird on it hexagon enamel pin. Pop-up man braid artisan pug tilde synth lo-fi. Ethical tofu portland keytar waistcoat. Pabst authentic hammock chillwave twee trust fund. Lyft humblebrag ramps irony unicorn.', + }, + ], })