diff options
Diffstat (limited to 'tests/rustdoc-js-std/option-type-signatures.js')
-rw-r--r-- | tests/rustdoc-js-std/option-type-signatures.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/rustdoc-js-std/option-type-signatures.js b/tests/rustdoc-js-std/option-type-signatures.js new file mode 100644 index 000000000..6bf421a21 --- /dev/null +++ b/tests/rustdoc-js-std/option-type-signatures.js @@ -0,0 +1,18 @@ +const QUERY = [ + 'option, fnonce -> option', + 'option -> default', +]; + +const EXPECTED = [ + { + 'others': [ + { 'path': 'std::option::Option', 'name': 'map' }, + ], + }, + { + 'others': [ + { 'path': 'std::option::Option', 'name': 'unwrap_or_default' }, + { 'path': 'std::option::Option', 'name': 'get_or_insert_default' }, + ], + }, +]; |