Update jsdoc codefix tests; test function(...) syntax
This commit is contained in:
parent
f9e5576d58
commit
cbe7b4dba3
5 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
/// <reference path='fourslash.ts' />
|
/// <reference path='fourslash.ts' />
|
||||||
//// var x: [|Array.<number>|] = 12;
|
//// var x: [|Array.<number>|] = 12;
|
||||||
|
|
||||||
verify.rangeAfterCodeFix("Array<number>");
|
verify.rangeAfterCodeFix("number[]");
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @strict: true
|
||||||
/// <reference path='fourslash.ts' />
|
/// <reference path='fourslash.ts' />
|
||||||
//// var x: [|?number|] = 12;
|
//// var x: [|?number|] = 12;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @strict: true
|
||||||
/// <reference path='fourslash.ts' />
|
/// <reference path='fourslash.ts' />
|
||||||
//// var x: [|number?|] = 12;
|
//// var x: [|number?|] = 12;
|
||||||
|
|
||||||
|
|
4
tests/cases/fourslash/codeFixChangeJSDocSyntax8.ts
Normal file
4
tests/cases/fourslash/codeFixChangeJSDocSyntax8.ts
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
/// <reference path='fourslash.ts' />
|
||||||
|
//// var x: [|function(this: number, number): string|] = 12;
|
||||||
|
|
||||||
|
verify.rangeAfterCodeFix("(this: number, arg1: number) => string");
|
4
tests/cases/fourslash/codeFixChangeJSDocSyntax9.ts
Normal file
4
tests/cases/fourslash/codeFixChangeJSDocSyntax9.ts
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
/// <reference path='fourslash.ts' />
|
||||||
|
//// var x: [|function(new: number)|] = 12;
|
||||||
|
|
||||||
|
verify.rangeAfterCodeFix("new () => number");
|
Loading…
Reference in a new issue