Skip to content

Commit e700e66

Browse files
committed
Add test
1 parent 3fa03b0 commit e700e66

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/core/test/lib/base.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,15 @@ describe('BaseClient', () => {
477477
});
478478
});
479479

480+
test('adds installed integrations to sdk info', () => {
481+
const client = new TestClient({ dsn: PUBLIC_DSN, integrations: [new TestIntegration()] });
482+
client.setupIntegrations();
483+
client.captureEvent({ message: 'message' }, undefined);
484+
expect(TestBackend.instance!.event!.sdk).toEqual({
485+
integrations: ['TestIntegration'],
486+
});
487+
});
488+
480489
test('normalizes event with default depth of 3', () => {
481490
expect.assertions(1);
482491
const client = new TestClient({ dsn: PUBLIC_DSN });

0 commit comments

Comments
 (0)