@@ -38,7 +38,7 @@ const countriesControlListType = true
3838const listOfCountries = 'ES,FR,CH'
3939const info = 'info'
4040
41- describe ( 'Beneficiaries Tests' , ( ) => {
41+ describe . only ( 'Beneficiaries Tests' , ( ) => {
4242 let signer_A : SignerWithAddress
4343 let signer_B : SignerWithAddress
4444 let account_A : string
@@ -136,14 +136,12 @@ describe('Beneficiaries Tests', () => {
136136
137137 describe ( 'Add Tests' , ( ) => {
138138 it ( 'GIVEN an unlisted beneficiary WHEN unauthorized user adds it THEN it reverts with AccountHasNoRole' , async ( ) => {
139- beneficiariesFacet = beneficiariesFacet . connect ( signer_B )
140-
141139 await expect (
142- beneficiariesFacet . addBeneficiary (
143- BENEFICIARY_1 ,
144- BENEFICIARY_1_DATA ,
145- { gasLimit : GAS_LIMIT . default }
146- )
140+ beneficiariesFacet
141+ . connect ( signer_B )
142+ . addBeneficiary ( BENEFICIARY_1 , BENEFICIARY_1_DATA , {
143+ gasLimit : GAS_LIMIT . default ,
144+ } )
147145 ) . to . be . revertedWithCustomError (
148146 beneficiariesFacet ,
149147 'AccountHasNoRole'
@@ -203,12 +201,12 @@ describe('Beneficiaries Tests', () => {
203201
204202 describe ( 'Remove Tests' , ( ) => {
205203 it ( 'GIVEN a listed beneficiary WHEN unauthorized user removes it THEN it reverts with AccountHasNoRole' , async ( ) => {
206- beneficiariesFacet = beneficiariesFacet . connect ( signer_B )
207-
208204 await expect (
209- beneficiariesFacet . removeBeneficiary ( BENEFICIARY_2 , {
210- gasLimit : GAS_LIMIT . default ,
211- } )
205+ beneficiariesFacet
206+ . connect ( signer_B )
207+ . removeBeneficiary ( BENEFICIARY_2 , {
208+ gasLimit : GAS_LIMIT . default ,
209+ } )
212210 ) . to . be . revertedWithCustomError (
213211 beneficiariesFacet ,
214212 'AccountHasNoRole'
@@ -217,7 +215,6 @@ describe('Beneficiaries Tests', () => {
217215
218216 it ( 'GIVEN an listed beneficiary WHEN user removes it if token is paused THEN it reverts with TokenIsPaused' , async ( ) => {
219217 await pauseFacet . pause ( { gasLimit : GAS_LIMIT . default } )
220-
221218 await expect (
222219 beneficiariesFacet . removeBeneficiary ( BENEFICIARY_2 , {
223220 gasLimit : GAS_LIMIT . default ,
@@ -258,14 +255,12 @@ describe('Beneficiaries Tests', () => {
258255
259256 describe ( 'Update Data Tests' , ( ) => {
260257 it ( 'GIVEN a listed beneficiary WHEN unauthorized user updates its data THEN it reverts with AccountHasNoRole' , async ( ) => {
261- beneficiariesFacet = beneficiariesFacet . connect ( signer_B )
262-
263258 await expect (
264- beneficiariesFacet . updateBeneficiaryData (
265- BENEFICIARY_2 ,
266- BENEFICIARY_1_DATA ,
267- { gasLimit : GAS_LIMIT . default }
268- )
259+ beneficiariesFacet
260+ . connect ( signer_B )
261+ . updateBeneficiaryData ( BENEFICIARY_2 , BENEFICIARY_1_DATA , {
262+ gasLimit : GAS_LIMIT . default ,
263+ } )
269264 ) . to . be . revertedWithCustomError (
270265 beneficiariesFacet ,
271266 'AccountHasNoRole'
@@ -274,7 +269,6 @@ describe('Beneficiaries Tests', () => {
274269
275270 it ( 'GIVEN an listed beneficiary WHEN user updates its data if token is paused THEN it reverts with TokenIsPaused' , async ( ) => {
276271 await pauseFacet . pause ( { gasLimit : GAS_LIMIT . default } )
277-
278272 await expect (
279273 beneficiariesFacet . updateBeneficiaryData (
280274 BENEFICIARY_2 ,
0 commit comments