Skip to content

Commit

Permalink
test: add new richtext astext assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
c0nst4ntin committed Nov 22, 2022
1 parent 6a6914c commit ecbffbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Prismic/Dom/RichTextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ecbffbf

Please sign in to comment.