chore: Add assigned_count to conversation APIs (#2665)

This commit is contained in:
Sojan Jose
2021-07-19 19:10:58 +05:30
committed by GitHub
parent a235e82a02
commit 217dd8a6f0
7 changed files with 40 additions and 18 deletions

View File

@@ -55,6 +55,16 @@ describe ::ConversationFinder do
result = conversation_finder.perform
expect(result[:conversations].count).to be 3
end
it 'returns the correct meta' do
result = conversation_finder.perform
expect(result[:count]).to eq({
mine_count: 2,
assigned_count: 3,
unassigned_count: 1,
all_count: 4
})
end
end
context 'with team' do