2018-04-17 18:15:05 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @allowJs: true
|
|
|
|
// @Filename: /a.js
|
|
|
|
/////** Doc */
|
|
|
|
////const C = function() { this.x = 0; }
|
|
|
|
|
|
|
|
verify.codeFix({
|
|
|
|
description: "Convert function to an ES2015 class",
|
|
|
|
newFileContent:
|
2020-07-07 18:54:03 +02:00
|
|
|
`/** Doc */
|
2018-04-17 18:15:05 +02:00
|
|
|
class C {
|
|
|
|
constructor() { this.x = 0; }
|
2020-07-07 18:54:03 +02:00
|
|
|
}`,
|
2018-04-17 18:15:05 +02:00
|
|
|
});
|