mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
2c146cca62
Co-authored-by: Giulio Andreini <andreini@netseven.it>
26 lines
472 B
TypeScript
26 lines
472 B
TypeScript
import { filterSortSearchListItems } from '../../v2/helpers/utils';
|
|
|
|
describe('Test MicrosoftTeamsV2, filterSortSearchListItems', () => {
|
|
it('should filter, sort and search list items', () => {
|
|
const items = [
|
|
{
|
|
name: 'Test1',
|
|
value: 'test1',
|
|
},
|
|
{
|
|
name: 'Test2',
|
|
value: 'test2',
|
|
},
|
|
];
|
|
|
|
const result = filterSortSearchListItems(items, 'test1');
|
|
|
|
expect(result).toEqual([
|
|
{
|
|
name: 'Test1',
|
|
value: 'test1',
|
|
},
|
|
]);
|
|
});
|
|
});
|