Skip to content

Commit 4b58aba

Browse files
committed
chore: Test
1 parent 9fe5412 commit 4b58aba

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/core/test/lib/serverruntimeclient.test.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,20 @@ describe('ServerRuntimeClient', () => {
141141
]);
142142
});
143143

144+
it('can select a custom checkInId', () => {
145+
const options = getDefaultClientOptions({
146+
dsn: PUBLIC_DSN,
147+
serverName: 'bar',
148+
release: '1.0.0',
149+
environment: 'dev',
150+
});
151+
client = new ServerRuntimeClient(options);
152+
153+
const id = client.captureCheckIn({ monitorSlug: 'foo', status: 'in_progress', checkInId: 'custom_id' });
154+
155+
expect(id).toEqual('custom_id');
156+
});
157+
144158
it('does not send a checkIn envelope if disabled', () => {
145159
const options = getDefaultClientOptions({ dsn: PUBLIC_DSN, serverName: 'bar', enabled: false });
146160
client = new ServerRuntimeClient(options);

0 commit comments

Comments
 (0)