2018-01-09 22:15:47 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @allowJs: true
|
2018-04-24 01:05:37 +02:00
|
|
|
// @target: esnext
|
2018-01-09 22:15:47 +01:00
|
|
|
|
|
|
|
// @Filename: /a.js
|
2018-02-28 20:16:32 +01:00
|
|
|
////module.exports = {
|
2018-01-09 22:15:47 +01:00
|
|
|
//// x: 0,
|
|
|
|
//// f: function() {},
|
|
|
|
//// g: () => {},
|
|
|
|
//// h() {},
|
|
|
|
//// C: class {},
|
|
|
|
////};
|
|
|
|
|
2018-05-16 01:22:58 +02:00
|
|
|
// @Filename: /b.js
|
|
|
|
////const a = require("./a.js");
|
|
|
|
|
2018-02-28 20:16:32 +01:00
|
|
|
verify.codeFix({
|
|
|
|
description: "Convert to ES6 module",
|
|
|
|
newFileContent:
|
|
|
|
`export const x = 0;
|
2018-01-09 22:15:47 +01:00
|
|
|
export function f() { }
|
|
|
|
export function g() { }
|
|
|
|
export function h() { }
|
2020-03-19 17:46:00 +01:00
|
|
|
export class C { }`,
|
2018-01-09 22:15:47 +01:00
|
|
|
});
|