When creating a module from a ref, args should be used if included in the spec.
This change adds the use of args in this scenario. Extracted getArgs function now that it is used in multiple places.
Added a unit test that failed before the change and passes with the new code.
This is useful to create a module from another module by calling its function and passing arguments to obtain a new, configured module.
When creating a module from a ref, args should be used if included in the spec. This change adds the use of args in this scenario. Extracted getArgs function now that it is used in multiple places. Added a unit test that failed before the change and passes with the new code.
This is useful to create a module from another module by calling its function and passing arguments to obtain a new, configured module.