2018-05-10 20:17:04 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
2018-06-15 00:41:47 +02:00
|
|
|
////// header comment
|
|
|
|
////
|
2018-05-24 18:36:37 +02:00
|
|
|
////import './foo';
|
|
|
|
////import { a, b, alreadyUnused } from './other';
|
2018-05-10 20:17:04 +02:00
|
|
|
////const p = 0;
|
2018-06-04 19:35:23 +02:00
|
|
|
////[|const y: Date = p + b;|]
|
2018-05-10 20:17:04 +02:00
|
|
|
////a; y;
|
|
|
|
|
|
|
|
verify.moveToNewFile({
|
|
|
|
newFileContents: {
|
|
|
|
"/a.ts":
|
2018-06-15 00:41:47 +02:00
|
|
|
`// header comment
|
2018-05-10 20:17:04 +02:00
|
|
|
|
2018-05-24 18:36:37 +02:00
|
|
|
import './foo';
|
|
|
|
import { a, alreadyUnused } from './other';
|
2018-06-15 00:41:47 +02:00
|
|
|
import { y } from './y';
|
2018-05-10 20:17:04 +02:00
|
|
|
export const p = 0;
|
|
|
|
a; y;`,
|
|
|
|
|
|
|
|
"/y.ts":
|
2018-05-24 18:36:37 +02:00
|
|
|
`import { b } from './other';
|
|
|
|
import { p } from './a';
|
2020-07-22 19:31:42 +02:00
|
|
|
|
2018-10-24 01:10:26 +02:00
|
|
|
export const y: Date = p + b;
|
|
|
|
`,
|
2018-05-10 20:17:04 +02:00
|
|
|
},
|
2018-05-24 18:36:37 +02:00
|
|
|
|
|
|
|
preferences: {
|
|
|
|
quotePreference: "single",
|
|
|
|
}
|
2018-05-10 20:17:04 +02:00
|
|
|
});
|