Skip to content

Commit

Permalink
Update NotificationTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kawax committed Sep 3, 2024
1 parent 735ccde commit 3daaeb5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Feature/Notifications/NotificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@ public function test_message_facets()
$this->assertIsArray($m->facets);
}

public function test_message_facet_index()
{
$m = BlueskyMessage::create(text: 'test')
->link('テスト', 'http://');

$this->assertSame([
'byteStart' => 4,
'byteEnd' => 13,
], $m->facets[0]['index']);
}

public function test_message_facet()
{
$m = BlueskyMessage::create(text: 'test')
Expand Down

0 comments on commit 3daaeb5

Please sign in to comment.