Update rustdoc-js-std tests

This commit is contained in:
Guillaume Gomez 2023-06-12 16:05:00 +02:00
parent b99bf4677b
commit b5f8258497
7 changed files with 127 additions and 105 deletions

View file

@ -7,23 +7,14 @@ const PARSED = [
query: 'a b',
elems: [
{
name: "a",
fullPath: ["a"],
pathWithoutLast: [],
pathLast: "a",
generics: [],
typeFilter: -1,
},
{
name: "b",
fullPath: ["b"],
pathWithoutLast: [],
name: "a b",
fullPath: ["a", "b"],
pathWithoutLast: ["a"],
pathLast: "b",
generics: [],
typeFilter: -1,
},
],
foundElems: 2,
foundElems: 1,
original: "a b",
returned: [],
userQuery: "a b",
@ -33,23 +24,14 @@ const PARSED = [
query: 'a b',
elems: [
{
name: "a",
fullPath: ["a"],
pathWithoutLast: [],
pathLast: "a",
generics: [],
typeFilter: -1,
},
{
name: "b",
fullPath: ["b"],
pathWithoutLast: [],
name: "a b",
fullPath: ["a", "b"],
pathWithoutLast: ["a"],
pathLast: "b",
generics: [],
typeFilter: -1,
},
],
foundElems: 2,
foundElems: 1,
original: "a b",
returned: [],
userQuery: "a b",
@ -73,7 +55,6 @@ const PARSED = [
pathWithoutLast: [],
pathLast: "aaa",
generics: [],
typeFilter: -1,
},
{
name: "a",
@ -81,7 +62,6 @@ const PARSED = [
pathWithoutLast: [],
pathLast: "a",
generics: [],
typeFilter: -1,
},
],
foundElems: 2,
@ -106,7 +86,7 @@ const PARSED = [
original: 'mod :',
returned: [],
userQuery: 'mod :',
error: "Unexpected `:` (expected path after type filter)",
error: "Unexpected `:` (expected path after type filter `mod:`)",
},
{
query: 'mod\t:',
@ -115,6 +95,6 @@ const PARSED = [
original: 'mod\t:',
returned: [],
userQuery: 'mod\t:',
error: "Unexpected `:` (expected path after type filter)",
error: "Unexpected `:` (expected path after type filter `mod:`)",
},
];