javascript - How to invoke general function of angular factory from karma test script file? -


I need to write one of my corner factories in my tenure, for which I have typed that factory in my tenure File like this

  First of all (injection (function (injected fabric) {injectedfinor.getuserdata ();}));  

and injectextactor with this method

  var InjectedFichermic module = angular Module ('injectfinic module'); Injected Factor module.Fattery ('Injectable', [], function () {function getUserData () {user user object;}});  

But this code entry does not apply to the getUserData () method how to solve it?


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -