Skip to content

Commit 1105519

Browse files
authored
fix(amazonq): Fix integ test case of content controller (#5470)
Problem: - CI test in linux is failing Solution: - Fix integ test case of content controller
1 parent 803c641 commit 1105519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/test/amazonq/common/contentController.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('contentController', () => {
2323
controller.insertTextAtCursorPosition(
2424
'abc\n def',
2525
(editor: vscode.TextEditor, cursorStart: vscode.Position) => {
26-
assert.equal(editor.document.getText(), 'def hello_world():\n abc\n def')
26+
assert.equal(editor.document.getText(), 'def hello_world():\n abc\n def')
2727
}
2828
)
2929
} else {
@@ -39,7 +39,7 @@ describe('contentController', () => {
3939
controller.insertTextAtCursorPosition(
4040
'abc\n def',
4141
(editor: vscode.TextEditor, cursorStart: vscode.Position) => {
42-
assert.equal(editor.document.getText(), 'def abc\n defhello_world():\n')
42+
assert.equal(editor.document.getText(), 'def abc\n defhello_world():\n ')
4343
}
4444
)
4545
} else {

0 commit comments

Comments
 (0)