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.default = 0;
|
2018-01-09 22:15:47 +01:00
|
|
|
////exports.default;
|
|
|
|
|
2018-02-28 20:16:32 +01:00
|
|
|
verify.codeFix({
|
|
|
|
description: "Convert to ES6 module",
|
|
|
|
newFileContent:
|
|
|
|
`const _default = 0;
|
2018-01-09 22:15:47 +01:00
|
|
|
export { _default as default };
|
|
|
|
_default;`,
|
|
|
|
});
|