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

Function fakePromptConfirmValue

ng-dev/pr/merge/integration.spec.ts:83–85  ·  view source on GitHub ↗

Fakes a prompt confirm question with the given value.

(returnValue: boolean)

Source from the content-addressed store, hash-verified

81
82 /** Fakes a prompt confirm question with the given value. */
83 function fakePromptConfirmValue(returnValue: boolean) {
84 spyOn(Prompt, 'confirm').and.resolveTo(returnValue);
85 }
86
87 /** Fakes a NPM package query API request. */
88 function fakeNpmPackageQueryRequest(data: Partial<NpmPackageInfo>) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected