Skip to content

Commit

Permalink
Add additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 1, 2023
1 parent c87959c commit b5a257b
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -92,6 +92,18 @@ public function test_it_generates_a_valid_JSON()
Filesystem::unlink('_docs/bar.md');
}

public function test_it_strips_markdown()
{
Filesystem::putContents('_docs/foo.md', "# Foo Bar\n**Hello** _World_");

$this->assertSame(
"Foo Bar\nHello World",
((new DocumentationSearchService())->run()->searchIndex->toArray())[0]['content']
);

Filesystem::unlink('_docs/foo.md');
}

public function test_get_destination_for_slug_returns_empty_string_for_index_when_pretty_url_is_enabled()
{
config(['site.pretty_urls' => true]);
Expand Down

0 comments on commit b5a257b

Please sign in to comment.