MCPcopy
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
291function expectBadRequest(fn: () => Promise<any>) {
292 return expect(fn()).rejects.toThrow(ZErrorCode.bad_request)
293}
294
295// ---- tests ----
296

Callers 1

mutators.test.tsFile · 0.85

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…