mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
fix(test): update regression test to handle TS error correctly
This commit is contained in:
@@ -1285,9 +1285,8 @@ describe('ClearcutLogger', () => {
|
|||||||
describe('logStartSessionEvent', () => {
|
describe('logStartSessionEvent', () => {
|
||||||
it('should not throw if event is undefined', async () => {
|
it('should not throw if event is undefined', async () => {
|
||||||
const { logger } = setup();
|
const { logger } = setup();
|
||||||
// @ts-expect-error - intentionally passing undefined to reproduce the issue
|
|
||||||
await expect(
|
await expect(
|
||||||
logger?.logStartSessionEvent(undefined),
|
logger?.logStartSessionEvent(undefined as unknown as StartSessionEvent),
|
||||||
).resolves.not.toThrow();
|
).resolves.not.toThrow();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user