Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tldraw/tldraw
/ expectBadRequest
Function
expectBadRequest
packages/dotcom-shared/src/mutators.test.ts:291–293 ·
view source on GitHub ↗
(fn: () => Promise<any>)
Source
from the content-addressed store, hash-verified
289
}
290
291
function
expectBadRequest(fn: () => Promise<any>) {
292
return
expect(fn()).rejects.toThrow(ZErrorCode.bad_request)
293
}
294
295
// ---- tests ----
296
Callers
1
mutators.test.ts
File · 0.85
Calls
1
fn
Function · 0.50
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…