forked from eatvio/eatvio_app
feat(test): comments, auth, feed
This commit is contained in:
7
test/fixtures/auth/oauth_signin_request.json
vendored
Normal file
7
test/fixtures/auth/oauth_signin_request.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"provider": "vk",
|
||||
"accessToken": "vk_access_token_123",
|
||||
"refreshToken": "vk_refresh_token_123",
|
||||
"clientId": "vk_client_id_123"
|
||||
}
|
||||
|
||||
16
test/fixtures/auth/oauth_signup_request.json
vendored
Normal file
16
test/fixtures/auth/oauth_signup_request.json
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"provider": "vk",
|
||||
"accessToken": "vk_access_token_123",
|
||||
"id": "vk_user_id_123",
|
||||
"refreshToken": "vk_refresh_token_123",
|
||||
"firstName": "Иван",
|
||||
"lastName": "Иванов",
|
||||
"email": "ivan@example.com",
|
||||
"phone": "+79001234567",
|
||||
"dateOfBirth": "1990-01-01",
|
||||
"gender": "М",
|
||||
"weight": 75,
|
||||
"height": 180,
|
||||
"clientId": "vk_client_id_123"
|
||||
}
|
||||
|
||||
7
test/fixtures/auth/reset_password_request.json
vendored
Normal file
7
test/fixtures/auth/reset_password_request.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"email": "user@example.com",
|
||||
"code": "123456",
|
||||
"password": "newPassword123",
|
||||
"passwordConfirmation": "newPassword123"
|
||||
}
|
||||
|
||||
33
test/fixtures/feed/feed_blog_posts_response.json
vendored
Normal file
33
test/fixtures/feed/feed_blog_posts_response.json
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"feedBlogPostList": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Тестовый пост",
|
||||
"content": "Содержимое поста",
|
||||
"author": "Автор",
|
||||
"createdAt": "2024-01-01T00:00:00Z",
|
||||
"totalLikes": 10,
|
||||
"wasLikedByMe": false,
|
||||
"totalComments": 5,
|
||||
"totalViews": 100
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Второй пост",
|
||||
"content": "Еще одно содержимое",
|
||||
"author": "Другой автор",
|
||||
"createdAt": "2024-01-02T00:00:00Z",
|
||||
"totalLikes": 20,
|
||||
"wasLikedByMe": true,
|
||||
"totalComments": 10,
|
||||
"totalViews": 200
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"currentPage": 1,
|
||||
"lastPage": 3,
|
||||
"perPage": 10,
|
||||
"total": 25
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user