@@ -24,8 +24,9 @@ enum DealStatus {
2424 Created , // Just created
2525 Claimed , // Claimed by the supplier
2626 Rejected , // Rejected by the supplier
27+ Refunded , // Refunded by the supplier
2728 Cancelled , // Cancelled by the buyer
28- CheckedId , // Checked In
29+ CheckedIn , // Checked In
2930 CheckedOut , // Checked Out
3031 Disputed , // Dispute started
3132}
@@ -718,9 +719,9 @@ describe('Market contract', () => {
718719 ] ) ;
719720 await expect ( tx )
720721 . to . emit ( buyer . market , 'Status' )
721- . withArgs ( offer . payload . id , DealStatus . CheckedId , buyer . address ) ;
722+ . withArgs ( offer . payload . id , DealStatus . CheckedIn , buyer . address ) ;
722723 const { status } = await buyer . market . deals ( offer . payload . id ) ;
723- expect ( status ) . to . eq ( DealStatus . CheckedId ) ;
724+ expect ( status ) . to . eq ( DealStatus . CheckedIn ) ;
724725 } ) ;
725726 } ) ;
726727
@@ -756,9 +757,9 @@ describe('Market contract', () => {
756757 ] ) ;
757758 await expect ( tx )
758759 . to . emit ( supplierSigner . market , 'Status' )
759- . withArgs ( offer . payload . id , DealStatus . CheckedId , supplierSigner . address ) ;
760+ . withArgs ( offer . payload . id , DealStatus . CheckedIn , supplierSigner . address ) ;
760761 const { status } = await buyer . market . deals ( offer . payload . id ) ;
761- expect ( status ) . to . eq ( DealStatus . CheckedId ) ;
762+ expect ( status ) . to . eq ( DealStatus . CheckedIn ) ;
762763 } ) ;
763764
764765 it ( 'should check in after checkIn date' , async ( ) => {
@@ -780,9 +781,9 @@ describe('Market contract', () => {
780781 ] ) ;
781782 await expect ( tx )
782783 . to . emit ( supplierSigner . market , 'Status' )
783- . withArgs ( offer . payload . id , DealStatus . CheckedId , supplierSigner . address ) ;
784+ . withArgs ( offer . payload . id , DealStatus . CheckedIn , supplierSigner . address ) ;
784785 const { status } = await buyer . market . deals ( offer . payload . id ) ;
785- expect ( status ) . to . eq ( DealStatus . CheckedId ) ;
786+ expect ( status ) . to . eq ( DealStatus . CheckedIn ) ;
786787 } ) ;
787788 } ) ;
788789 } ) ;
0 commit comments