2018-01-09 22:15:47 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// Test that we leave it alone if the name is a keyword.
|
|
|
|
|
|
|
|
// @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
|
|
|
////exports.class = 0;
|
2018-01-09 22:15:47 +01:00
|
|
|
////exports.async = 1;
|
|
|
|
|
2018-02-28 20:16:32 +01:00
|
|
|
verify.codeFix({
|
|
|
|
description: "Convert to ES6 module",
|
|
|
|
newFileContent:
|
|
|
|
`const _class = 0;
|
2018-01-09 22:15:47 +01:00
|
|
|
export { _class as class };
|
|
|
|
export const async = 1;`,
|
|
|
|
});
|