Skip to content

Commit

Permalink
Add kitchen-sink-expected.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel committed Jul 26, 2023
1 parent 827fb27 commit 9f15aa5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
3 changes: 2 additions & 1 deletion tests/Renderer/MarkdownRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
21 changes: 21 additions & 0 deletions tests/stubs/kitchen-sink-expected.md
Original file line number Diff line number Diff line change
@@ -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()`
6 changes: 1 addition & 5 deletions tests/stubs/kitchen-sink.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 9f15aa5

Please sign in to comment.