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

Function assertArgDefined

test/angular/1.7/angular-mocks.js:2149–2153  ·  view source on GitHub ↗
(args, index, name)

Source from the content-addressed store, hash-verified

2147}
2148
2149function assertArgDefined(args, index, name) {
2150 if (args.length > index && angular.isUndefined(args[index])) {
2151 throw new Error('Undefined argument `' + name + '`; the argument is provided but not defined');
2152 }
2153}
2154
2155function stripQueryAndHash(url) {
2156 return url.replace(/[?#].*$/, '');

Callers 2

createHttpBackendMockFunction · 0.70
createShortMethodsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected