@@ -3,6 +3,7 @@ import { testingApiClient, startNockRec } from "./helpers/integrationTestsHelper
33import { BatchFactory } from "./factories/BatchFactory" ;
44import { RecipientFactory } from "./factories/RecipientFactory" ;
55import { RecipientAccountFactory } from "./factories/RecipientAccountFactory" ;
6+ import { Batch } from "../../lib" ;
67
78let batchFactory : BatchFactory ;
89let recipientFactory : RecipientFactory ;
@@ -33,6 +34,9 @@ describe("Batch", () => {
3334 assert . ok ( batch ) ;
3435 assert . ok ( batch . id ) ;
3536 assert . ok ( all . length > 0 ) ;
37+
38+ assert . strictEqual ( batch . constructor , Batch ) ;
39+ assert . strictEqual ( batch . description , batchFactory . defaultAttrs . description ) ;
3640 } ) ;
3741
3842 it ( "updates a batch" , async ( ) => {
@@ -50,6 +54,8 @@ describe("Batch", () => {
5054 nockDone ( ) ;
5155
5256 assert . ok ( batch ) ;
57+
58+ assert . strictEqual ( batch . constructor , Batch ) ;
5359 assert . strictEqual ( batch . description , "Integration Test Update 2" ) ;
5460 assert . strictEqual ( batch . status , "open" ) ;
5561 } ) ;
@@ -81,6 +87,8 @@ describe("Batch", () => {
8187 assert . ok ( batch ) ;
8288 assert . ok ( batch . id ) ;
8389 assert . ok ( findBatch ) ;
90+
91+ assert . strictEqual ( batch . constructor , Batch ) ;
8492 assert . strictEqual ( batch . totalPayments , 2 ) ;
8593
8694 const payments = await testingApiClient . batch . paymentList ( batch . id ) ;
@@ -120,7 +128,6 @@ describe("Batch", () => {
120128
121129 assert . ok ( batch ) ;
122130 assert . ok ( batch . id ) ;
123- assert . strictEqual ( 2 , summary . detail [ "bank-transfer" ] . count , "Bad Count" ) ;
124131 assert . ok ( quote , "failed to get quote" ) ;
125132 assert . ok ( start , "Failed to start" ) ;
126133 } ) ;
0 commit comments