diff --git a/tests/Prismic/Dom/RichTextTest.php b/tests/Prismic/Dom/RichTextTest.php index 3b7035c0..a18a9df7 100644 --- a/tests/Prismic/Dom/RichTextTest.php +++ b/tests/Prismic/Dom/RichTextTest.php @@ -41,6 +41,8 @@ public function testAsText() $this->assertEquals($expected, RichText::asText($this->richText->description)); $this->assertEquals($expected, RichText::asText($this->richText->description, $this->linkResolver)); + + $this->assertStringEndsNotWith("\n", RichText::asText($this->richText->description)); } public function testAsHtml()