@@ -5,6 +5,7 @@ import { UserInvestResult } from '../../src/investments/user-invest-result';
55import { RentalSingleFamily } from '../../src/properties/rental-single-family' ;
66import { PurchaseRuleTypes } from '../../src/rules/purchase-rule-types' ;
77import { IUserInvestorCheck } from '../../src/account/i-user-investor-check' ;
8+ import { PropertyType } from '../../src/account/property-type' ;
89
910describe ( 'and canInvestByUser' , ( ) => {
1011 let instance : RentalSingleFamily ;
@@ -98,11 +99,13 @@ describe('and canInvestByUser', () => {
9899 purchaseRules : [
99100 {
100101 type : PurchaseRuleTypes . minAskingPrice ,
102+ propertyType : PropertyType . SingleFamily ,
101103 value : 50000 ,
102104 evaluate : jest . fn ( ) . mockReturnValue ( false ) ,
103105 } ,
104106 {
105107 type : PurchaseRuleTypes . maxEstimatedOutOfPocket ,
108+ propertyType : PropertyType . SingleFamily ,
106109 value : 50000 ,
107110 evaluate : jest . fn ( ) . mockReturnValue ( false ) ,
108111 } ,
@@ -130,11 +133,13 @@ describe('and canInvestByUser', () => {
130133 purchaseRules : [
131134 {
132135 type : PurchaseRuleTypes . minAfterRepairPrice ,
136+ propertyType : PropertyType . SingleFamily ,
133137 value : 50000 ,
134138 evaluate : jest . fn ( ) . mockReturnValue ( false ) ,
135139 } ,
136140 {
137141 type : PurchaseRuleTypes . maxEstimatedOutOfPocket ,
142+ propertyType : PropertyType . SingleFamily ,
138143 value : 50000 ,
139144 evaluate : jest . fn ( ) . mockReturnValue ( false ) ,
140145 } ,
0 commit comments