MCPcopy Create free account
hub / github.com/testing-library/user-event / assertDescriptor

Function assertDescriptor

src/utils/keyDef/readNextDescriptor.ts:116–125  ·  view source on GitHub ↗
(
  descriptor: string | undefined,
  text: string,
  pos: number,
  context: Context,
)

Source from the content-addressed store, hash-verified

114}
115
116function assertDescriptor(
117 descriptor: string | undefined,
118 text: string,
119 pos: number,
120 context: Context,
121): asserts descriptor is string {
122 if (!descriptor) {
123 throw new Error(getErrorMessage('key descriptor', text[pos], text, context))
124 }
125}
126
127function hasReleaseSelf(releaseSelfModifier: string, repeatModifier: string) {
128 if (releaseSelfModifier) {

Callers 2

readPrintableCharFunction · 0.85
readTagFunction · 0.85

Calls 1

getErrorMessageFunction · 0.85

Tested by

no test coverage detected