diff --git a/tests/Renderer/MarkdownRendererTest.php b/tests/Renderer/MarkdownRendererTest.php index 89a252f..51212a7 100644 --- a/tests/Renderer/MarkdownRendererTest.php +++ b/tests/Renderer/MarkdownRendererTest.php @@ -41,11 +41,12 @@ public function it_renders_ast_to_markdown(): void public function it_parses_and_renders_kitchen_sink(): void { $contentKitchenSink = file_get_contents(__DIR__ . '/../stubs/kitchen-sink.md'); + $contentKitchenSinkExpected = file_get_contents(__DIR__ . '/../stubs/kitchen-sink-expected.md'); $document = $this->parser->parse($contentKitchenSink); $result = $this->renderer->renderDocument($document)->getContent(); - $this->assertEquals($contentKitchenSink, $result); + $this->assertEquals($contentKitchenSinkExpected, $result); } } diff --git a/tests/stubs/kitchen-sink-expected.md b/tests/stubs/kitchen-sink-expected.md new file mode 100644 index 0000000..f59041f --- /dev/null +++ b/tests/stubs/kitchen-sink-expected.md @@ -0,0 +1,21 @@ +# Changelog + +All notable changes to this project will be documented in this file. +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). + +## Task List + +- [ ] Task 1 +- [x] Task 2 + +## Curiosities + +- This is a list item which is followed by an indented content on the next line +- which is part of the same list item + +## [Unreleased](https://github.com/olivierlacan/keep-a-changelog/compare/v1.0.0...HEAD) + +**This Text is Bold** +*This Text is Italic* + +`\Class->getFoo()` diff --git a/tests/stubs/kitchen-sink.md b/tests/stubs/kitchen-sink.md index 4986ba6..adf44fc 100644 --- a/tests/stubs/kitchen-sink.md +++ b/tests/stubs/kitchen-sink.md @@ -16,10 +16,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased](https://github.com/olivierlacan/keep-a-changelog/compare/v1.0.0...HEAD) **This Text is Bold** -_This Text is Italic_ +*This Text is Italic* `\Class->getFoo()` - -``` -Hello World -```