2017-10-11 00:39:59 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @allowNonTsExtensions: true
|
|
|
|
// @Filename: test123.js
|
|
|
|
////export function /**/MyClass() {
|
|
|
|
////}
|
|
|
|
////MyClass.prototype.foo = function() {
|
|
|
|
////}
|
|
|
|
|
2018-03-02 21:57:29 +01:00
|
|
|
verify.codeFix({
|
|
|
|
description: "Convert function to an ES2015 class",
|
|
|
|
newFileContent:
|
2017-10-11 00:39:59 +02:00
|
|
|
`export class MyClass {
|
|
|
|
constructor() {
|
|
|
|
}
|
|
|
|
foo() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`,
|
2018-03-02 21:57:29 +01:00
|
|
|
});
|