@@ -178,19 +178,19 @@ describe('editorContext', function () {
178178 describe ( 'getNotebookCellContext' , function ( ) {
179179 it ( 'Should return cell text for python code cells when language is python' , function ( ) {
180180 const mockCodeCell = createNotebookCell ( createMockDocument ( 'def example():\n return "test"' ) )
181- const result = EditorContext . extractSingleCellContext ( mockCodeCell , 'python' )
181+ const result = EditorContext . getNotebookCellContext ( mockCodeCell , 'python' )
182182 assert . strictEqual ( result , 'def example():\n return "test"' )
183183 } )
184184
185185 it ( 'Should return java comments for python code cells when language is java' , function ( ) {
186186 const mockCodeCell = createNotebookCell ( createMockDocument ( 'def example():\n return "test"' ) )
187- const result = EditorContext . extractSingleCellContext ( mockCodeCell , 'java' )
187+ const result = EditorContext . getNotebookCellContext ( mockCodeCell , 'java' )
188188 assert . strictEqual ( result , '// def example():\n// return "test"' )
189189 } )
190190
191191 it ( 'Should return python comments for java code cells when language is python' , function ( ) {
192192 const mockCodeCell = createNotebookCell ( createMockDocument ( 'println(1 + 1);' , 'somefile.ipynb' , 'java' ) )
193- const result = EditorContext . extractSingleCellContext ( mockCodeCell , 'python' )
193+ const result = EditorContext . getNotebookCellContext ( mockCodeCell , 'python' )
194194 assert . strictEqual ( result , '# println(1 + 1);' )
195195 } )
196196
@@ -199,7 +199,7 @@ describe('editorContext', function () {
199199 createMockDocument ( '# Heading\nThis is a markdown cell' ) ,
200200 vscode . NotebookCellKind . Markup
201201 )
202- const result = EditorContext . extractSingleCellContext ( mockMarkdownCell , 'python' )
202+ const result = EditorContext . getNotebookCellContext ( mockMarkdownCell , 'python' )
203203 assert . strictEqual ( result , '# # Heading\n# This is a markdown cell' )
204204 } )
205205
@@ -208,7 +208,7 @@ describe('editorContext', function () {
208208 createMockDocument ( '# Heading\nThis is a markdown cell' ) ,
209209 vscode . NotebookCellKind . Markup
210210 )
211- const result = EditorContext . extractSingleCellContext ( mockMarkdownCell , 'java' )
211+ const result = EditorContext . getNotebookCellContext ( mockMarkdownCell , 'java' )
212212 assert . strictEqual ( result , '// # Heading\n// This is a markdown cell' )
213213 } )
214214 } )
0 commit comments