I am failing on the third test in gulp. I guess i don't understand what Lines 33-35 are testing. It seems to me that we are calling inject on ModuleA with the the result of calling aFunc as the parameter. What is the point of doing this? I think that according to the specs, that if there are no further arguments provided in aFunc, it should just return the value of calling aFunc() back. Why does this seem to be more complicated than this?
The test is to see if we can "load multiple modules." Not sure why adding another module would cause the program to halt. Is it because I am using "this" improperly? It seems that they would be sequential calls. Maybe I am missing an async consideration.
Additionally, should we be using the regex in our register function to parse through the array of dependencies? Or in our inject function? Or both?
I am failing on the third test in gulp. I guess i don't understand what Lines 33-35 are testing. It seems to me that we are calling inject on ModuleA with the the result of calling aFunc as the parameter. What is the point of doing this? I think that according to the specs, that if there are no further arguments provided in aFunc, it should just return the value of calling aFunc() back. Why does this seem to be more complicated than this?
The test is to see if we can "load multiple modules." Not sure why adding another module would cause the program to halt. Is it because I am using "this" improperly? It seems that they would be sequential calls. Maybe I am missing an async consideration.
Additionally, should we be using the regex in our register function to parse through the array of dependencies? Or in our inject function? Or both?