Add test for aliases partial match
This commit is contained in:
11
tests/rustdoc-js-std/alias-lev.js
Normal file
11
tests/rustdoc-js-std/alias-lev.js
Normal 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' },
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user