Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Sep 9, 2024
1 parent ceba52a commit 682a9d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pest3-now-available.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ Once you have identified the untested code, you can write additional tests to co
covers(TodoController::class);

it('list todos', function () {
+ Todo::factory()->create(['name' => 'Buy milk']);
+ Todo::factory()->create(['name' => 'Buy milk']);

- $this->getJson('/todos')->assertStatus(200);
+ $this->getJson('/todos')->assertStatus(200)->assertJson([[ 'name' => 'Buy milk' ]]);
- $this->getJson('/todos')->assertStatus(200);
+ $this->getJson('/todos')->assertStatus(200)->assertJson([['name' => 'Buy milk']]);
});
```

Expand Down

0 comments on commit 682a9d0

Please sign in to comment.