@@ -25,7 +25,7 @@ describe("Invoice", () => {
2525
2626 assert . ok ( invoice ) ;
2727 assert . strictEqual ( invoice . constructor , Invoice ) ;
28- assert . strictEqual ( "testInvoice" , invoice . externalId ) ;
28+ assert . strictEqual ( invoice . externalId , "testInvoice" ) ;
2929 assert . strictEqual ( recipient . id , invoice . recipientId ) ;
3030 } ) ;
3131
@@ -55,10 +55,10 @@ describe("Invoice", () => {
5555
5656 assert . ok ( invoice ) ;
5757 assert . strictEqual ( invoice . constructor , Invoice ) ;
58- assert . strictEqual ( "testInvoice" , invoice . externalId ) ;
58+ assert . strictEqual ( invoice . externalId , "testInvoice" ) ;
5959 assert . strictEqual ( recipient . id , invoice . recipientId ) ;
60- assert . strictEqual ( 1 , invoice . lines . length ) ;
61- assert . strictEqual ( "testInvoiceLine" , invoice . lines [ 0 ] . externalId ) ;
60+ assert . strictEqual ( invoice . lines . length , 1 ) ;
61+ assert . strictEqual ( invoice . lines [ 0 ] . externalId , "testInvoiceLine" ) ;
6262
6363 } ) ;
6464
@@ -76,7 +76,7 @@ describe("Invoice", () => {
7676
7777 assert . ok ( findInvoice ) ;
7878 assert . strictEqual ( findInvoice . constructor , Invoice ) ;
79- assert . strictEqual ( "testInvoice" , findInvoice . externalId ) ;
79+ assert . strictEqual ( findInvoice . externalId , "testInvoice" ) ;
8080 } ) ;
8181
8282 it ( "searches for an invoice" , async ( ) => {
@@ -125,7 +125,7 @@ describe("Invoice", () => {
125125
126126 assert . ok ( invoice ) ;
127127 assert . strictEqual ( invoice . constructor , Invoice ) ;
128- assert . strictEqual ( "Updated description" , updatedInvoice . description ) ;
128+ assert . strictEqual ( updatedInvoice . description , "Updated description" ) ;
129129 } ) ;
130130
131131 it ( "deletes an invoice" , async ( ) => {
0 commit comments