mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 11:34:44 -07:00
First batch of fixing tests to use best practices. (#11964)
This commit is contained in:
@@ -67,8 +67,7 @@ describe('SubagentToolWrapper', () => {
|
||||
it('should call convertInputConfigToJsonSchema with the correct agent inputConfig', () => {
|
||||
new SubagentToolWrapper(mockDefinition, mockConfig);
|
||||
|
||||
expect(convertInputConfigToJsonSchema).toHaveBeenCalledOnce();
|
||||
expect(convertInputConfigToJsonSchema).toHaveBeenCalledWith(
|
||||
expect(convertInputConfigToJsonSchema).toHaveBeenCalledExactlyOnceWith(
|
||||
mockDefinition.inputConfig,
|
||||
);
|
||||
});
|
||||
@@ -115,8 +114,7 @@ describe('SubagentToolWrapper', () => {
|
||||
const invocation = wrapper.build(params);
|
||||
|
||||
expect(invocation).toBeInstanceOf(SubagentInvocation);
|
||||
expect(MockedSubagentInvocation).toHaveBeenCalledOnce();
|
||||
expect(MockedSubagentInvocation).toHaveBeenCalledWith(
|
||||
expect(MockedSubagentInvocation).toHaveBeenCalledExactlyOnceWith(
|
||||
params,
|
||||
mockDefinition,
|
||||
mockConfig,
|
||||
|
||||
Reference in New Issue
Block a user