Skip to content

Commit

Permalink
Update GiftBatchService_TEST.cls
Browse files Browse the repository at this point in the history
  • Loading branch information
enzigma-pratishtha-upadhyay committed Apr 11, 2024
1 parent ac63dcb commit 1d43b58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion force-app/main/default/classes/GiftBatchService_TEST.cls
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ private class GiftBatchService_TEST {
Test.stopTest();

// Assert
Integer jobsCount = [SELECT count() FROM AsyncApexJob];
Integer jobsCount = [SELECT count() FROM AsyncApexJob WHERE JobType = 'Queueable'];
System.assertEquals(1, jobsCount, 'Should have enqueued a job');
Integer batchjobsCount = [SELECT count() FROM AsyncApexJob WHERE JobType = 'BatchApex'];
System.assertEquals(1, batchjobsCount, 'Should have one batch apex job');

Integer opportunitiesCount = [SELECT count() FROM Opportunity];
System.assertEquals(10, opportunitiesCount, 'Should have created 10 opportunities');
Expand Down

0 comments on commit 1d43b58

Please sign in to comment.