MCPcopy
hub / github.com/angular-ui/ui-router / prettyPrint

Function prettyPrint

test/angular/1.4/angular-mocks.js:1257–1261  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

1255 wasExpected = false;
1256
1257 function prettyPrint(data) {
1258 return (angular.isString(data) || angular.isFunction(data) || data instanceof RegExp)
1259 ? data
1260 : angular.toJson(data);
1261 }
1262
1263 function wrapResponse(wrapped) {
1264 if (!$browser && timeout) {

Callers 1

$httpBackendFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected