Skip to content

Commit 3fa1022

Browse files
Fiona2016claude
andcommitted
test(logs): expect default usr.id from anonymous id in request spec
After merging publish, the fork's default-usr-id behavior (usr.id falls back to the session anonymous id) applies to log events, so the request spec must expect both id and anonymous_id. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 3c40377 commit 3fa1022

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/logs/src/boot/startLogs.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ describe('logs', () => {
120120
},
121121
origin: ErrorSource.LOGGER,
122122
usr: {
123+
// the FlashCat fork defaults usr.id to the session anonymous id when no user is set
124+
id: jasmine.any(String),
123125
anonymous_id: jasmine.any(String),
124126
},
125127
})

0 commit comments

Comments
 (0)