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

Function prettyPrint

test/angular/1.3/angular-mocks.js:1199–1203  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

1197 wasExpected = false;
1198
1199 function prettyPrint(data) {
1200 return (angular.isString(data) || angular.isFunction(data) || data instanceof RegExp)
1201 ? data
1202 : angular.toJson(data);
1203 }
1204
1205 function wrapResponse(wrapped) {
1206 if (!$browser && timeout) {

Callers 1

$httpBackendFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected