Skip to content

Commit

Permalink
Merge pull request #148 from bhimbho/fix/fix-failing-test-ii
Browse files Browse the repository at this point in the history
Fix/fix failing test ii
  • Loading branch information
Ruthiejayjay authored Jul 24, 2024
2 parents 4eb24aa + 329083f commit d3e5c8d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Feature/JobListingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function test_authenticated_user_can_retrieve_job_listings()
{
$user = User::factory()->create();
$organisation = Organisation::factory()->create();
Job::factory()->count(15)->create([
Job::factory()->count(2)->create([
'user_id' => $user->id,
'organisation_id' => $organisation->org_id
]);
Expand All @@ -32,8 +32,7 @@ public function test_authenticated_user_can_retrieve_job_listings()
],
'pagination' => ['current_page', 'total_pages', 'page_size', 'total_items']
])
->assertJsonCount(10, 'data')
->assertJsonPath('pagination.total_items', 15);
->assertJsonPath('pagination.total_items', 2);
}

public function test_job_listings_are_paginated()
Expand Down

0 comments on commit d3e5c8d

Please sign in to comment.