mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 04:10:01 +00:00
feat(Microsoft Teams Node): Overhaul (#7477)
Co-authored-by: Giulio Andreini <andreini@netseven.it>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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',
|
||||
},
|
||||
]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user