Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Apr 26, 2024
1 parent 9cae312 commit 0281071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/DiffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function test_diff_includes_entire_content()

$new = new Version(['contents' => ['title' => '<p>version2</p>', 'content' => str_replace('Para-10', 'Para-10 has now changed', $content)]]);

$diff = (new Diff($new, $old))->toSideBySideHtml(stripTags: false);
$diff = (new Diff($new, $old))->toSideBySideHtml(['context' => \Jfcherng\Diff\Differ::CONTEXT_ALL], stripTags: false);

assertTrue(str_contains($diff['content'], 'Para-2'));
}
Expand Down

0 comments on commit 0281071

Please sign in to comment.