(promise: Promise<unknown>, messageFragment: string)
| 21 | } |
| 22 | |
| 23 | function 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 | |
| 32 | describe('readNotificationPayload inline input', () => { |
| 33 | test('parses an inline JSON object', async () => { |
no outgoing calls
no test coverage detected
searching dependent graphs…