fix: Add all articles count to article API (#5497)

This commit is contained in:
Tejaswini Chile
2022-09-28 01:05:53 +05:30
committed by GitHub
parent c1c57fb2cd
commit 336c09e072
2 changed files with 7 additions and 0 deletions

View File

@@ -195,6 +195,8 @@ RSpec.describe 'Api::V1::Accounts::Articles', type: :request do
json_response = JSON.parse(response.body)
expect(json_response['payload'].count).to be 1
expect(json_response['meta']['articles_count']).to be 2
expect(json_response['meta']['all_articles_count']).to be 2
expect(json_response['meta']['mine_articles_count']).to be 1
end
end