0

As an example, I am trying to debug this (pseudocode):

spyOn(form, 'append').and.callThrough();
baseRecord.$fillForm(form, params, '[namespace]');
console.log(JSON.stringify(form.append));
expect(form.append.argsForCall).toEqual(...);

karma gives me:

LOG: function () { ... }

with no information about the content of the function.

Alex C
  • 1,334
  • 2
  • 18
  • 41

1 Answers1

1

Check Stack Overflow first, like this for example: Existing Answer Link

And to answer your question,

console.log(functionName.toString());
Community
  • 1
  • 1
SoEzPz
  • 14,958
  • 8
  • 61
  • 64