(
state: CurrentChatFolders,
id: ChatFolderId,
reason: string
)
| 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, |
no test coverage detected