Add test for aliases partial match

This commit is contained in:
Guillaume Gomez
2025-07-15 21:08:18 +02:00
parent b0bf51f9a9
commit c079c96877
2 changed files with 20 additions and 8 deletions

View File

@@ -0,0 +1,11 @@
// This test ensures that aliases are also allowed to be partially matched.
// ignore-order
const EXPECTED = {
// The full alias name is `getcwd`.
'query': 'getcw',
'others': [
{ 'path': 'std::env', 'name': 'current_dir', 'alias': 'getcwd' },
],
};