@@ -267,8 +267,6 @@ describe("DelegatedManagerFactory", () => {
267267 } ) ;
268268 } ) ;
269269
270- // This test exists to cover the condition on the branch which validates components are assets
271- // Just verifying that creation state is pending
272270 describe ( "when the assets array is empty" , async ( ) => {
273271 beforeEach ( ( ) => {
274272 subjectAssets = [ ] ;
@@ -282,6 +280,16 @@ describe("DelegatedManagerFactory", () => {
282280
283281 expect ( initializeParams . isPending ) . eq ( true ) ;
284282 } ) ;
283+
284+ it ( "should set the DelegatedManager's useAssetAllowlist to false" , async ( ) => {
285+ const tx = await subject ( ) ;
286+
287+ const setTokenAddress = await protocolUtils . getCreatedSetTokenAddress ( tx . hash ) ;
288+ const initializeParams = await delegatedManagerFactory . initializeState ( setTokenAddress ) ;
289+ const delegatedManager = await deployer . manager . getDelegatedManager ( initializeParams . manager ) ;
290+
291+ expect ( await delegatedManager . useAssetAllowlist ( ) ) . eq ( false ) ;
292+ } ) ;
285293 } ) ;
286294 } ) ;
287295
@@ -418,8 +426,6 @@ describe("DelegatedManagerFactory", () => {
418426 } ) ;
419427 } ) ;
420428
421- // This test exists to cover the condition on the branch which validates components are assets
422- // Just verifying that creation state is pending
423429 describe ( "when the assets array is empty" , async ( ) => {
424430 beforeEach ( ( ) => {
425431 subjectAssets = [ ] ;
@@ -432,6 +438,15 @@ describe("DelegatedManagerFactory", () => {
432438
433439 expect ( initializeParams . isPending ) . eq ( true ) ;
434440 } ) ;
441+
442+ it ( "should set the DelegatedManager's useAssetAllowlist to false" , async ( ) => {
443+ await subject ( ) ;
444+
445+ const initializeParams = await delegatedManagerFactory . initializeState ( subjectSetToken ) ;
446+ const delegatedManager = await deployer . manager . getDelegatedManager ( initializeParams . manager ) ;
447+
448+ expect ( await delegatedManager . useAssetAllowlist ( ) ) . eq ( false ) ;
449+ } ) ;
435450 } ) ;
436451 } ) ;
437452
0 commit comments