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

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -