import { getConversationsRequestArgs } from '../request/conversation' const groupId = 'Groups-Group-1' as const describe('getConversationsRequestArgs', () => { it.each([ ['no args', {}, 'mine_or_not_empty'], [ 'group_source_app_name', { group_source_app_name: 'Groups' }, 'mine_or_not_empty,group_source_app_name', ], ['chat_group_graph_id', { chat_group_graph_id: groupId }, 'mine_or_not_empty,group'], ['show_direct_messages', { show_direct_messages: true }, 'mine_or_not_empty,direct_message'], ['show_archived', { show_archived: true }, 'mine_or_not_empty,archived'], ])('%s uses filter: %s', (_label, args, expectedFilter) => { expect(getConversationsRequestArgs(args).data.filter).toBe(expectedFilter) }) })