File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -640,6 +640,26 @@ defmodule ExDoc.Formatter.HTMLTest do
640640 Jason . decode! ( content ) [ "extras" ]
641641 |> Enum . find ( & ( & 1 [ "id" ] == "readme" ) )
642642 |> Map . fetch! ( "searchData" )
643+
644+ "searchData=" <> content = read_wildcard! ( tmp_dir <> "/html/dist/search_data-*.js" )
645+
646+ assert [
647+ % {
648+ "doc" => "In this doc we..." ,
649+ "ref" => "readme.html" ,
650+ "title" => "top of the doc - readme" ,
651+ "type" => "custom"
652+ } ,
653+ % {
654+ "doc" => "Some longer text!\n \n Here it is :)" ,
655+ "ref" => "readme.html#heading-without-content" ,
656+ "title" => "custom-text - readme" ,
657+ "type" => "custom"
658+ }
659+ ] =
660+ content
661+ |> Jason . decode! ( )
662+ |> Map . fetch! ( "items" )
643663 end
644664
645665 test "containing settext headers while discarding links on header" ,
You can’t perform that action at this time.
0 commit comments