UNPKG

ng-annotate

Version:

add, remove and rebuild angularjs dependency injection annotations

15 lines (10 loc) 273 B
/* * Test utils */ var body = require('fn-body'), normalize = require('normalize-fn'); // given a function, return its body as a normalized string. // makes tests look a bit cleaner exports.stringifyFunctionBody = function (fn) { return normalize(body(fn)); };