test synthesized object literal formatting

This commit is contained in:
Arthur Ozga
2018-03-23 15:54:01 -07:00
parent 3fc480c0bd
commit 1ea2a52b69
@@ -0,0 +1,23 @@
/// <reference path='fourslash.ts' />
//// interface IPerson {
//// coordinate: {
//// x: number;
//// y: number;
//// }
//// }
//// class Person implements IPerson { }
verify.codeFix({
description: "Implement interface 'IPerson'",
newFileContent:
`interface IPerson {
coordinate: {
x: number;
y: number;
}
}
class Person implements IPerson {
coordinate: { x: number; y: number; };
}`,
});