about summary refs log tree commit diff
path: root/tests/rustdoc-js/summaries.js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-06-09 16:49:38 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-06-09 17:00:47 +0200
commit9803651ee84545f8913b6fe9e76c8bd13603bb6e (patch)
treeb142f6884326782d5ba7bd11757477615e320238 /tests/rustdoc-js/summaries.js
parent6b0c7c4f01d3e6c90d10847471c7a2256346dd3e (diff)
downloadrust-9803651ee84545f8913b6fe9e76c8bd13603bb6e.tar.gz
rust-9803651ee84545f8913b6fe9e76c8bd13603bb6e.zip
Update rustdoc-js* format
Diffstat (limited to 'tests/rustdoc-js/summaries.js')
-rw-r--r--tests/rustdoc-js/summaries.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/rustdoc-js/summaries.js b/tests/rustdoc-js/summaries.js
index dfb11e80414..ae3aefb0c48 100644
--- a/tests/rustdoc-js/summaries.js
+++ b/tests/rustdoc-js/summaries.js
@@ -1,19 +1,20 @@
 // ignore-tidy-linelength
 
-const QUERY = ['summaries', 'summaries::Sidebar', 'summaries::Sidebar2'];
-
 const EXPECTED = [
     {
+        'query': 'summaries',
         'others': [
            { 'path': '', 'name': 'summaries', 'desc': 'This <em>summary</em> has a link, [<code>code</code>], and <code>Sidebar2</code> intra-doc.' },
         ],
     },
     {
+        'query': 'summaries::Sidebar',
         'others': [
             { 'path': 'summaries', 'name': 'Sidebar', 'desc': 'This <code>code</code> will be rendered in a code tag.' },
         ],
     },
     {
+        'query': 'summaries::Sidebar2',
         'others': [
             { 'path': 'summaries', 'name': 'Sidebar2', 'desc': '' },
         ],