TypeScript/tests/cases/fourslash/codeFixExpectedComma01.ts
Joey Watts 31963d54b8
Add implementation for fixExpectedComma (#33879)
Signed-off-by: Andrew Deniszczyc <adeniszczyc@bloomberg.net>

Cleanup of implementation

Move check node container check

Add test cases for fixExpectedCommaError

Renaming and add test case

Co-authored-by: Andrew Deniszczyc <adeniszczyc@bloomberg.net>
2020-03-12 14:55:02 -07:00

15 lines
318 B
TypeScript

/// <reference path='fourslash.ts' />
////class C {
//// const example = [|{ a : "one"; c : "two"}|]
////}
verify.codeFixAvailable([
{ description: `Change ';' to ','` }
]);
verify.codeFix({
description: "Change ';' to ','",
index: 0,
newRangeContent: `{ a : "one", c : "two"}`,
});