TypeScript/tests/cases/fourslash/moveToNewFile_format.ts

23 lines
342 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
// @Filename: /a.ts
////[|function f() {
//// const x = 0;
////}|]
var copy = format.copyFormatOptions();
copy.ConvertTabsToSpaces = false;
format.setFormatOptions(copy);
verify.moveToNewFile({
newFileContents: {
"/a.ts":
``,
"/f.ts":
`function f() {
const x = 0;
}
`,
},
});