forked from eatvio/eatvio_app
feat(tests): added services tests and fixtures
This commit is contained in:
32
test/fixtures/feed/comment_response.json
vendored
Normal file
32
test/fixtures/feed/comment_response.json
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"author_name": "User 1",
|
||||
"author_slug": "user-1",
|
||||
"author_profile_icon": "https://example.com/user1.jpg",
|
||||
"body": "Great post!",
|
||||
"children_comments": [],
|
||||
"created_at": "2024-01-15T12:00:00Z"
|
||||
}
|
||||
],
|
||||
"links": {
|
||||
"first": "http://localhost/api/comments?page=1",
|
||||
"last": "http://localhost/api/comments?page=1",
|
||||
"prev": null,
|
||||
"next": null
|
||||
},
|
||||
"meta": {
|
||||
"current_page": 1,
|
||||
"from": 1,
|
||||
"last_page": 1,
|
||||
"links": [],
|
||||
"path": "http://localhost/api/comments",
|
||||
"per_page": 10,
|
||||
"to": 1,
|
||||
"total": 1,
|
||||
"total_min_price": null,
|
||||
"total_max_price": null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user