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

This commit is contained in:
Tejaswini Chile
2022-09-27 12:35:53 -07:00
committed by GitHub
parent c1c57fb2cd
commit 336c09e072
2 changed files with 7 additions and 0 deletions
@@ -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