Skip to content

Commit abd4f58

Browse files
committed
Restore single-token tests
1 parent 7413918 commit abd4f58

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

File renamed without changes.

tests/cases/fourslash/extract-method13.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
//// class C {
77
//// static j = /*c*/1 + 1/*d*/;
8-
//// constructor(q: string = /*a*/"a" + "b"/*b*/) {
8+
//// constructor(q: string = /*a*/"hello"/*b*/) {
99
//// }
1010
//// }
1111

@@ -21,7 +21,7 @@ edit.applyRefactor({
2121
}
2222
2323
private static newFunction(): string {
24-
return "a" + "b";
24+
return "hello";
2525
}
2626
}`
2727
});
@@ -32,7 +32,7 @@ verify.currentFileContentIs(`class C {
3232
}
3333
3434
private static newFunction(): string {
35-
return "a" + "b";
35+
return "hello";
3636
}
3737
}`);
3838

@@ -52,7 +52,7 @@ edit.applyRefactor({
5252
}
5353
5454
private static newFunction(): string {
55-
return "a" + "b";
55+
return "hello";
5656
}
5757
}`
5858
});

tests/cases/fourslash/extract-method7.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// You cannot extract a function initializer into the function's body.
44
// The innermost scope (scope_0) is the sibling of the function, not the function itself.
55

6-
//// function fn(x = /*a*/1 + 1/*b*/) {
6+
//// function fn(x = /*a*/3/*b*/) {
77
//// }
88

99
goTo.select('a', 'b');
@@ -15,7 +15,7 @@ edit.applyRefactor({
1515
`function fn(x = /*RENAME*/newFunction()) {
1616
}
1717
function newFunction() {
18-
return 1 + 1;
18+
return 3;
1919
}
2020
`
2121
});

0 commit comments

Comments
 (0)