MCPcopy
hub / github.com/tldraw/tldraw / expectForbidden

Function expectForbidden

packages/dotcom-shared/src/mutators.test.ts:287–289  ·  view source on GitHub ↗
(fn: () => Promise<any>)

Source from the content-addressed store, hash-verified

285}
286
287function expectForbidden(fn: () => Promise<any>) {
288 return expect(fn()).rejects.toThrow(ZErrorCode.forbidden)
289}
290
291function expectBadRequest(fn: () => Promise<any>) {
292 return expect(fn()).rejects.toThrow(ZErrorCode.bad_request)

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…