We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40feda1 commit 46347b8Copy full SHA for 46347b8
lambdas/functions/control-plane/src/lambda.test.ts
@@ -215,7 +215,9 @@ describe('Test scale up lambda wrapper.', () => {
215
vi.mocked(scaleUp).mockRejectedValue(new Error('Generic error'));
216
217
const result = await scaleUpHandler(multiRecordEvent, context);
218
- expect(result).toEqual({ batchItemFailures: [] });
+ expect(result).toEqual({
219
+ batchItemFailures: [{ itemIdentifier: 'message-0' }, { itemIdentifier: 'message-1' }],
220
+ });
221
});
222
223
it('Should throw when scaleUp throws ScaleError', async () => {
0 commit comments