Skip to content

Commit 163ff5f

Browse files
committed
polishing some tests
1 parent 5db2785 commit 163ff5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vs/editor/contrib/indentation/test/browser/indentation.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -883,23 +883,23 @@ suite('`Full` Auto Indent On Type - TypeScript/JavaScript', () => {
883883
});
884884
});
885885

886-
test.skip('issue #43244: indent when lambda arrow function is detected, outdent when end is reached', () => {
886+
test('issue #43244: indent when lambda arrow function is detected, outdent when end is reached', () => {
887887

888888
// https://github.com/microsoft/vscode/issues/43244
889889

890890
const model = createTextModel([
891891
'const array = [1, 2, 3, 4, 5];',
892-
'array.map(v =>)'
892+
'array.map(_)'
893893
].join('\n'), languageId, {});
894894
disposables.add(model);
895895

896896
withTestCodeEditor(model, { autoIndent: "full" }, (editor, viewModel, instantiationService) => {
897897
registerLanguage(instantiationService, languageId, Language.TypeScript, disposables);
898-
editor.setSelection(new Selection(2, 15, 2, 15));
898+
editor.setSelection(new Selection(2, 12, 2, 12));
899899
viewModel.type("\n", 'keyboard');
900900
assert.strictEqual(model.getValue(), [
901901
'const array = [1, 2, 3, 4, 5];',
902-
'array.map(v =>',
902+
'array.map(_',
903903
' ',
904904
')'
905905
].join('\n'));

0 commit comments

Comments
 (0)