import TestBatch from '../TestBatch'; import ProcessDto from '../../../lib/Utils/ProcessDto'; describe('Tests for TestBatch', () => { it('getName', () => { const batch = new TestBatch(); expect(batch.getName()).toEqual('testbatch'); }); it('processAction', async () => { const batch = new TestBatch(); const editedDto = await batch.processAction(new ProcessDto()); const { headers } = editedDto; expect(headers).toEqual({ 'pf-cursor': 'testCursor', 'pf-result-code': '1010', // eslint-disable-next-line max-len 'pf-result-message': 'Message will be used as a iterator with cursor [testCursor]. Data will be send to follower(s).', }); }); });