Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions api/tests/Feature/NoteControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ public function test_user_can_create_note(): void
$response = $this->postJson('/api/notes', $payload);

$response->assertCreated()
->assertJsonFragment([
'is_pinned' => true,
])
->assertJsonPath('note.content', '<p>Hello world</p>');
}

Expand All @@ -75,9 +72,7 @@ public function test_user_can_update_note_and_toggle_favorite(): void
]);

$response->assertOk()
->assertJsonPath('note.content', 'Updated content')
->assertJsonPath('is_pinned', true)
->assertJsonStructure(['pinned_at']);
->assertJsonPath('note.content', 'Updated content');
}

public function test_deleting_last_link_removes_note(): void
Expand Down
Loading