mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
test: Add snapshot for sublimeSearch and a first test (no-changelog) (#13794)
This commit is contained in:
@@ -98,7 +98,8 @@ export function searchNodes(searchFilter: string, items: INodeCreateElement[]) {
|
||||
|
||||
// In order to support the old search we need to remove the 'trigger' part
|
||||
const trimmedFilter = searchFilter.toLowerCase().replace('trigger', '').trimEnd();
|
||||
|
||||
// We have a snapshot of this call in sublimeSearch.test.ts to assert practical order for some cases
|
||||
// Please kindly update the test call if you modify the weights here, and ideally regenerate the snapshot as described in its file.
|
||||
const result = (
|
||||
sublimeSearch<INodeCreateElement>(trimmedFilter, items, [
|
||||
{ key: 'properties.displayName', weight: 1.3 },
|
||||
|
||||
Reference in New Issue
Block a user