@@ -19,16 +19,22 @@ export default ({ describe, it, expect, after, before }: QuenchMethods) => {
1919 const dataModel = new OseDataModelCharacter ( ) ;
2020 const ascendingACSetting = game . settings . get ( game . system . id , "ascendingAC" ) ;
2121 const initiativeSetting = game . settings . get ( game . system . id , "initiative" ) ;
22+ const encumbranceSetting = game . settings . get (
23+ game . system . id ,
24+ "encumbranceOption"
25+ ) ;
2226
2327 after ( ( ) => {
2428 game . settings . set ( game . system . id , "ascendingAC" , ascendingACSetting ) ;
2529 game . settings . set ( game . system . id , "initiative" , initiativeSetting ) ;
30+ game . settings . set ( game . system . id , "encumbranceOption" , encumbranceSetting ) ;
2631 cleanUpActorsByKey ( key ) ;
2732 } ) ;
2833
2934 // @todo : Can this be tested without creating an actor?
3035 describe ( "prepareDerivedData()" , ( ) => {
3136 before ( async ( ) => {
37+ await game . settings . set ( game . system . id , "encumbranceOption" , "detailed" ) ;
3238 await createMockActor ( ) ;
3339 } ) ;
3440
@@ -60,9 +66,9 @@ export default ({ describe, it, expect, after, before }: QuenchMethods) => {
6066 expect ( actor ?. system . encumbrance . steps ) . not . undefined ;
6167 expect ( actor ?. system . encumbrance . value ) . not . undefined ;
6268 expect ( actor ?. system . encumbrance . max ) . not . undefined ;
63- expect ( actor ?. system . encumbrance . atHalfEncumbered ) . not . undefined ;
64- expect ( actor ?. system . encumbrance . atQuarterEncumbered ) . not . undefined ;
65- expect ( actor ?. system . encumbrance . atEighthEncumbered ) . not . undefined ;
69+ expect ( actor ?. system . encumbrance . steps ) . not . undefined ;
70+ // expect(actor?.system.encumbrance.atQuarterEncumbered).not.undefined;
71+ // expect(actor?.system.encumbrance.atEighthEncumbered).not.undefined;
6672 } ) ;
6773
6874 it ( "has movement" , async ( ) => {
0 commit comments