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
Post a Comment