MCPcopy
hub / github.com/signalapp/Signal-Desktop / expect

Function expect

ts/types/CurrentChatFolders.std.ts:124–135  ·  view source on GitHub ↗
(
    state: CurrentChatFolders,
    id: ChatFolderId,
    reason: string
  )

Source from the content-addressed store, hash-verified

122 }
123
124 export function expect(
125 state: CurrentChatFolders,
126 id: ChatFolderId,
127 reason: string
128 ): CurrentChatFolder {
129 const chatFolder = get(state, id);
130 strictAssert(
131 chatFolder != null,
132 `Expected chat folder to exist in state ${id} (${reason})`
133 );
134 return chatFolder;
135 }
136
137 export function at(
138 state: CurrentChatFolders,

Callers 15

toSortedArrayFunction · 0.85
interactionTestFunction · 0.85
interactionTestFunction · 0.85
typeIntoInputFunction · 0.85
createCallLinkFunction · 0.85
expectLightboxImageFunction · 0.85

Calls 2

strictAssertFunction · 0.90
getFunction · 0.70

Tested by

no test coverage detected