Skip to content

Commit 76d8c47

Browse files
Updated more tests
1 parent 28d3d65 commit 76d8c47

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

data/fixtures/recorded/actions/snippets/snipFunkAfterThis4.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ command:
66
name: insertSnippet
77
snippetDescription:
88
type: custom
9-
body: "$name($parameterList) {\n\t$body\n}"
9+
body: "function $name($parameterList) {\n\t$body\n}"
1010
scopeTypes:
1111
- {type: statement}
1212
destination:
@@ -25,12 +25,12 @@ initialState:
2525
finalState:
2626
documentContents: |-
2727
const foo = "bar";
28-
() {
28+
function () {
2929
3030
}
3131
selections:
32-
- anchor: {line: 1, character: 0}
33-
active: {line: 1, character: 0}
32+
- anchor: {line: 1, character: 9}
33+
active: {line: 1, character: 9}
3434
thatMark:
3535
- type: UntypedTarget
3636
contentRange:

data/fixtures/recorded/actions/snippets/snipFunkAfterThis5.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ command:
88
type: custom
99
body: "$name($parameterList) {\n\t$body\n}"
1010
scopeTypes:
11+
- {type: namedFunction}
1112
- {type: statement}
1213
destination:
1314
type: primitive
@@ -34,17 +35,18 @@ finalState:
3435
bbb() {
3536
3637
}
38+
3739
() {
3840
3941
}
4042
}
4143
selections:
42-
- anchor: {line: 4, character: 4}
43-
active: {line: 4, character: 4}
44+
- anchor: {line: 5, character: 4}
45+
active: {line: 5, character: 4}
4446
thatMark:
4547
- type: UntypedTarget
4648
contentRange:
47-
start: {line: 4, character: 4}
48-
end: {line: 6, character: 5}
49+
start: {line: 5, character: 4}
50+
end: {line: 7, character: 5}
4951
isReversed: false
5052
hasExplicitRange: true

data/fixtures/recorded/actions/snippets/snipFunkBeforeThis4.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ command:
66
name: insertSnippet
77
snippetDescription:
88
type: custom
9-
body: "function $name($parameterList) {\n\t$body\n}"
9+
body: "$name($parameterList) {\n\t$body\n}"
1010
scopeTypes:
1111
- {type: namedFunction}
1212
- {type: statement}
@@ -32,7 +32,7 @@ initialState:
3232
finalState:
3333
documentContents: |-
3434
class Aaa {
35-
function () {
35+
() {
3636
3737
}
3838
@@ -41,8 +41,8 @@ finalState:
4141
}
4242
}
4343
selections:
44-
- anchor: {line: 1, character: 13}
45-
active: {line: 1, character: 13}
44+
- anchor: {line: 1, character: 4}
45+
active: {line: 1, character: 4}
4646
thatMark:
4747
- type: UntypedTarget
4848
contentRange:

0 commit comments

Comments
 (0)