From af73a694e887eb489d90cffd68b8c6d14835ff72 Mon Sep 17 00:00:00 2001 From: typicode Date: Thu, 11 Jan 2024 07:49:52 +0100 Subject: [PATCH] update fixtures --- .gitignore | 1 - fixtures/db.json | 13 +++++++++++++ fixtures/db.json5 | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 fixtures/db.json diff --git a/.gitignore b/.gitignore index 621febe..e0b3ff2 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,3 @@ lib node_modules public/output.css tmp -db.json diff --git a/fixtures/db.json b/fixtures/db.json new file mode 100644 index 0000000..4e736d1 --- /dev/null +++ b/fixtures/db.json @@ -0,0 +1,13 @@ +{ + "posts": [ + { "id": "1", "title": "a title" }, + { "id": "2", "title": "another title" } + ], + "comments": [ + { "id": "1", "text": "a comment about post 1", "postId": "1" }, + { "id": "2", "text": "another comment about post 1", "postId": "1" } + ], + "profile": { + "name": "typicode" + } +} \ No newline at end of file diff --git a/fixtures/db.json5 b/fixtures/db.json5 index e4b0068..3b06138 100644 --- a/fixtures/db.json5 +++ b/fixtures/db.json5 @@ -21,4 +21,7 @@ postId: '1', }, ], + profile: { + name: 'typicode', + }, } \ No newline at end of file