@@ -14,6 +14,8 @@ import {
1414 MERCURY_EDIT_DIFF_HISTORY_OPEN ,
1515 MERCURY_RECENTLY_VIEWED_CODE_SNIPPETS_CLOSE ,
1616 MERCURY_RECENTLY_VIEWED_CODE_SNIPPETS_OPEN ,
17+ MERCURY_RECENTLY_VIEWED_CODE_SNIPPET_CLOSE ,
18+ MERCURY_RECENTLY_VIEWED_CODE_SNIPPET_OPEN ,
1719} from "../constants" ;
1820import {
1921 renderDefaultSystemPrompt ,
@@ -31,7 +33,7 @@ describe("NextEditPromptEngine", () => {
3133
3234 beforeEach ( ( ) => {
3335 mercuryHelper = {
34- modelName : "inception/mercury-coder-nextedit " as NEXT_EDIT_MODELS ,
36+ modelName : "inception/mercury-coder" as NEXT_EDIT_MODELS ,
3537 fileContents : "function test() {\n const a = 1;\n return a;\n}" ,
3638 pos : { line : 1 , character : 12 } as Position ,
3739 lang : { name : "typescript" } ,
@@ -63,7 +65,7 @@ describe("NextEditPromptEngine", () => {
6365 } ;
6466 } ) ;
6567
66- it ( "should render mercury-coder-nextedit prompt correctly" , async ( ) => {
68+ it ( "should render mercury-coder prompt correctly" , async ( ) => {
6769 const result = await renderPrompt ( mercuryHelper , ctx ) ;
6870
6971 expect ( result ) . toHaveProperty ( "prompt" ) ;
@@ -72,6 +74,8 @@ describe("NextEditPromptEngine", () => {
7274 const content = result . prompt . content ;
7375 expect ( content ) . toContain ( MERCURY_RECENTLY_VIEWED_CODE_SNIPPETS_OPEN ) ;
7476 expect ( content ) . toContain ( MERCURY_RECENTLY_VIEWED_CODE_SNIPPETS_CLOSE ) ;
77+ expect ( content ) . toContain ( MERCURY_RECENTLY_VIEWED_CODE_SNIPPET_OPEN ) ;
78+ expect ( content ) . toContain ( MERCURY_RECENTLY_VIEWED_CODE_SNIPPET_CLOSE ) ;
7579 expect ( content ) . toContain ( MERCURY_CURRENT_FILE_CONTENT_OPEN ) ;
7680 expect ( content ) . toContain ( MERCURY_CURRENT_FILE_CONTENT_CLOSE ) ;
7781 expect ( content ) . toContain ( MERCURY_EDIT_DIFF_HISTORY_OPEN ) ;
0 commit comments