MCPcopy Create free account
hub / github.com/callstack/agent-device / expectInvalidArgs

Function expectInvalidArgs

src/core/dispatch-payload.test.ts:23–30  ·  view source on GitHub ↗
(promise: Promise<unknown>, messageFragment: string)

Source from the content-addressed store, hash-verified

21}
22
23function expectInvalidArgs(promise: Promise<unknown>, messageFragment: string) {
24 return expect(promise).rejects.toThrow(
25 expect.objectContaining({
26 code: 'INVALID_ARGS',
27 message: expect.stringContaining(messageFragment),
28 }),
29 );
30}
31
32describe('readNotificationPayload inline input', () => {
33 test('parses an inline JSON object', async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…