Skip to content

Commit 78dce7e

Browse files
committed
trim whitespace
don't know how this is related to windows but 🤷‍♂️
1 parent 2c07dcc commit 78dce7e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/Http/Controllers/ApiControllerTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ public function gets_a_resource_model_with_nested_fields()
149149
->assertSee(['data'])
150150
->assertJsonPath('data.id', $post->id)
151151
->assertJsonPath('data.values.alt_title', 'Alternative Title...')
152-
->assertJsonPath('data.values.alt_body', '<p>This is a <strong>great</strong> post! You should <em>read</em> it.</p>
153-
');
152+
->assertJsonPath('data.values.alt_body', fn ($value) => trim($value) === '<p>This is a <strong>great</strong> post! You should <em>read</em> it.</p>');
154153
}
155154

156155
#[Test]

0 commit comments

Comments
 (0)