Skip to content

Commit e3d56af

Browse files
error handling
1 parent c89dda3 commit e3d56af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/sources/datalayer/src/__tests__/index.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,12 @@ describe('source dataLayer', () => {
235235
throw new Error();
236236
});
237237

238-
sourceDataLayer(elb);
238+
const instance = sourceDataLayer({ elb });
239+
await jest.runAllTimersAsync();
239240
dataLayer.push('foo');
240241
await jest.runAllTimersAsync();
241242
expect(elb).toThrow();
242243
expect(mockOrg).toHaveBeenCalledTimes(1);
244+
expect(instance?.processing).toBe(false);
243245
});
244246
});

0 commit comments

Comments
 (0)