2018-01-09 22:15:47 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// TODO: Maybe we could transform this to `export function f() {}`.
|
|
|
|
|
|
|
|
// @allowJs: true
|
2018-04-24 01:05:37 +02:00
|
|
|
// @target: esnext
|
2018-01-09 22:15:47 +01:00
|
|
|
|
|
|
|
// @Filename: /a.js
|
|
|
|
////function f() {}
|
2018-02-28 20:16:32 +01:00
|
|
|
////module.exports = { f };
|
2018-01-09 22:15:47 +01:00
|
|
|
|
2018-02-28 20:16:32 +01:00
|
|
|
verify.codeFix({
|
|
|
|
description: "Convert to ES6 module",
|
|
|
|
newFileContent:
|
|
|
|
`function f() {}
|
2018-01-09 22:15:47 +01:00
|
|
|
export default { f };`,
|
|
|
|
});
|