MCPcopy Create free account
hub / github.com/angular/dev-infra / validateReplyParameters

Method validateReplyParameters

github-actions/saucelabs/set-saucelabs-env.js:11263–11270  ·  view source on GitHub ↗
(replyParameters)

Source from the content-addressed store, hash-verified

11261 /**
11262 * Allow one to define a reply for a set amount of matching requests.
11263 */
11264 times(repeatTimes) {
11265 if (typeof repeatTimes !== "number" || !Number.isInteger(repeatTimes) || repeatTimes <= 0) {
11266 throw new InvalidArgumentError("repeatTimes must be a valid integer > 0");
11267 }
11268 this[kMockDispatch].times = repeatTimes;
11269 return this;
11270 }
11271 };
11272 var MockInterceptor = class {
11273 constructor(opts, mockDispatches) {

Callers 2

replyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected