Skip to content

Commit 3458f5f

Browse files
committed
remove unused mock
1 parent 91501fe commit 3458f5f

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

common/src/__tests__/agent-validation.test.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,6 @@ describe('Agent Validation', () => {
3030
error: () => {},
3131
},
3232
}))
33-
34-
// Mock backend utility module
35-
mockModule('@codebuff/backend/util/file-resolver', () => ({
36-
resolvePromptField: (
37-
field: string | { path: string },
38-
basePath: string,
39-
) => {
40-
if (typeof field === 'string') {
41-
return field
42-
}
43-
if (field.path?.includes('brainstormer-system.md')) {
44-
return 'You are a creative brainstormer.'
45-
}
46-
if (field.path?.includes('brainstormer-user-input.md')) {
47-
return 'Help brainstorm ideas.'
48-
}
49-
return 'Mock content'
50-
},
51-
resolveFileContent: (filePath: string, basePath: string) => {
52-
if (filePath.includes('brainstormer-system.md')) {
53-
return 'You are a creative brainstormer.'
54-
}
55-
if (filePath.includes('brainstormer-user-input.md')) {
56-
return 'Help brainstorm ideas.'
57-
}
58-
return 'Mock content'
59-
},
60-
}))
6133
})
6234

6335
beforeEach(() => {

0 commit comments

Comments
 (0)