MCPcopy Create free account
hub / github.com/angular-ui/ui-router / prettyPrint

Function prettyPrint

test/angular/1.2/angular-mocks.js:1118–1122  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

1116 wasExpected = false;
1117
1118 function prettyPrint(data) {
1119 return (angular.isString(data) || angular.isFunction(data) || data instanceof RegExp)
1120 ? data
1121 : angular.toJson(data);
1122 }
1123
1124 function wrapResponse(wrapped) {
1125 if (!$browser && timeout && timeout.then) timeout.then(handleTimeout);

Callers 1

$httpBackendFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected