diff options
| author | Gaurav <[email protected]> | 2025-07-11 10:57:35 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-11 17:57:35 +0000 |
| commit | 8f12e8a114546326ee5b39d6aae859da6d906d0b (patch) | |
| tree | 662576a2aa5d4854bb3cdfd467846787500a3e52 /packages/core/src/utils/user_id.test.ts | |
| parent | 93284281de4a1593de802f3823707b9c1a43171e (diff) | |
fix: clearcut logging (retry #3744) (#3751)
Diffstat (limited to 'packages/core/src/utils/user_id.test.ts')
| -rw-r--r-- | packages/core/src/utils/user_id.test.ts | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/packages/core/src/utils/user_id.test.ts b/packages/core/src/utils/user_id.test.ts index 185d6c95..5c11d773 100644 --- a/packages/core/src/utils/user_id.test.ts +++ b/packages/core/src/utils/user_id.test.ts @@ -5,7 +5,7 @@ */ import { describe, it, expect } from 'vitest'; -import { getInstallationId, getGoogleAccountId } from './user_id.js'; +import { getInstallationId } from './user_id.js'; describe('user_id', () => { describe('getInstallationId', () => { @@ -21,31 +21,4 @@ describe('user_id', () => { expect(secondCall).toBe(installationId); }); }); - - describe('getGoogleAccountId', () => { - it('should return a non-empty string', async () => { - const result = await getGoogleAccountId(); - - expect(result).toBeDefined(); - expect(typeof result).toBe('string'); - - // Should be consistent on subsequent calls - const secondCall = await getGoogleAccountId(); - expect(secondCall).toBe(result); - }); - - it('should return empty string when no Google Account ID is cached, or a valid ID when cached', async () => { - // The function can return either an empty string (if no cached ID) or a valid Google Account ID (if cached) - const googleAccountIdResult = await getGoogleAccountId(); - - expect(googleAccountIdResult).toBeDefined(); - expect(typeof googleAccountIdResult).toBe('string'); - - // Should be either empty string or a numeric string (Google Account ID) - if (googleAccountIdResult !== '') { - // If we have a cached ID, it should be a numeric string - expect(googleAccountIdResult).toMatch(/^\d+$/); - } - }); - }); }); |
