diff options
Diffstat (limited to 'packages/core/src/utils/user_id.test.ts')
| -rw-r--r-- | packages/core/src/utils/user_id.test.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/core/src/utils/user_id.test.ts b/packages/core/src/utils/user_id.test.ts index 81b99ef4..5d9c72e4 100644 --- a/packages/core/src/utils/user_id.test.ts +++ b/packages/core/src/utils/user_id.test.ts @@ -28,21 +28,19 @@ describe('user_id', () => { expect(result).toBeDefined(); expect(typeof result).toBe('string'); - expect(result.length).toBeGreaterThan(0); // Should be consistent on subsequent calls const secondCall = getObfuscatedGoogleAccountId(); expect(secondCall).toBe(result); }); - it('should return the same as installation ID when no Google Account ID is cached', () => { + it('should return empty string when no Google Account ID is cached', () => { // In a clean test environment, there should be no cached Google Account ID // so getObfuscatedGoogleAccountId should fall back to installation ID const googleAccountIdResult = getObfuscatedGoogleAccountId(); - const installationIdResult = getInstallationId(); // They should be the same when no Google Account ID is cached - expect(googleAccountIdResult).toBe(installationIdResult); + expect(googleAccountIdResult).toBe(''); }); }); }); |
