Skip to content

Commit 684df79

Browse files
committed
fix(service-messaging): use hasOwnProperty.call — Object.hasOwn is outside this package's lib
Claude-Session: https://claude.ai/code/session_01URLHobLUJB9K1ABV6ofdjj Co-authored-by: Claude <noreply@anthropic.com>
1 parent dfce7f6 commit 684df79

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/services/service-messaging/src/channel-availability.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ describe('channel availability at fan-out (#17732)', () => {
185185
// notification is lost, to record that nothing was suppressed. That is
186186
// not hypothetical — it is what this change did to
187187
// `service-automation`'s zero-delivery harness before it was fixed.
188-
expect(Object.hasOwn(data.inserts[0].row, 'suppressed_channels')).toBe(false);
188+
expect(Object.prototype.hasOwnProperty.call(data.inserts[0].row, 'suppressed_channels')).toBe(false);
189189
});
190190

191191
it('the common path writes EXACTLY the column set it wrote before this change', async () => {
@@ -353,7 +353,7 @@ describe('channel availability at fan-out (#17732)', () => {
353353
});
354354

355355
expect(result.suppressed).toEqual([]);
356-
expect(Object.hasOwn(data.inserts[0].row, 'suppressed_channels')).toBe(false);
356+
expect(Object.prototype.hasOwnProperty.call(data.inserts[0].row, 'suppressed_channels')).toBe(false);
357357
expect(result.deliveries.find((d) => d.channel === 'nowhere'))
358358
.toMatchObject({ ok: false, error: "channel 'nowhere' not registered" });
359359
});

0 commit comments

Comments
 (0)