Skip to content

Commit 28d3d65

Browse files
Update test fixtures
1 parent de41e41 commit 28d3d65

File tree

9 files changed

+39
-133
lines changed

9 files changed

+39
-133
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: "function $name($parameterList) {\n\t$body\n}"
9+
body: "$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-
function () {
28+
() {
2929
3030
}
3131
selections:
32-
- anchor: {line: 1, character: 9}
33-
active: {line: 1, character: 9}
32+
- anchor: {line: 1, character: 0}
33+
active: {line: 1, character: 0}
3434
thatMark:
3535
- type: UntypedTarget
3636
contentRange:

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

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@ command:
44
spokenForm: snippet funk after this
55
action:
66
name: insertSnippet
7-
snippetDescription: {type: named, name: functionDeclaration}
7+
snippetDescription:
8+
type: custom
9+
body: "$name($parameterList) {\n\t$body\n}"
10+
scopeTypes:
11+
- {type: statement}
812
destination:
913
type: primitive
1014
insertionMode: after
1115
target:
1216
type: primitive
1317
mark: {type: cursor}
1418
usePrePhraseSnapshot: true
15-
spokenFormError: named insertion snippet
19+
spokenFormError: custom insertion snippet
1620
initialState:
1721
documentContents: |-
1822
class Aaa {
@@ -24,4 +28,23 @@ initialState:
2428
- anchor: {line: 2, character: 8}
2529
active: {line: 2, character: 8}
2630
marks: {}
27-
thrownError: {name: Error}
31+
finalState:
32+
documentContents: |-
33+
class Aaa {
34+
bbb() {
35+
36+
}
37+
() {
38+
39+
}
40+
}
41+
selections:
42+
- anchor: {line: 4, character: 4}
43+
active: {line: 4, character: 4}
44+
thatMark:
45+
- type: UntypedTarget
46+
contentRange:
47+
start: {line: 4, character: 4}
48+
end: {line: 6, character: 5}
49+
isReversed: false
50+
hasExplicitRange: true

data/fixtures/recorded/actions/snippets/snipFunkCelloWorld.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: statement}
1212
substitutions: {name: celloWorld}
@@ -25,13 +25,13 @@ initialState:
2525
finalState:
2626
documentContents: |-
2727
class Aaa {
28-
function celloWorld() {
28+
celloWorld() {
2929
3030
}
3131
}
3232
selections:
33-
- anchor: {line: 1, character: 24}
34-
active: {line: 1, character: 24}
33+
- anchor: {line: 1, character: 15}
34+
active: {line: 1, character: 15}
3535
thatMark:
3636
- type: UntypedTarget
3737
contentRange:

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

Lines changed: 5 additions & 6 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: "def $name($parameterList):\n\t$body"
1010
scopeTypes:
1111
- {type: statement}
1212
substitutions: {name: hello_world}
@@ -20,16 +20,15 @@ initialState:
2020
active: {line: 0, character: 0}
2121
finalState:
2222
documentContents: |-
23-
function hello_world() {
23+
def hello_world():
2424
25-
}
2625
selections:
27-
- anchor: {line: 0, character: 21}
28-
active: {line: 0, character: 21}
26+
- anchor: {line: 0, character: 16}
27+
active: {line: 0, character: 16}
2928
thatMark:
3029
- type: UntypedTarget
3130
contentRange:
3231
start: {line: 0, character: 0}
33-
end: {line: 2, character: 1}
32+
end: {line: 1, character: 4}
3433
isReversed: false
3534
hasExplicitRange: true

data/fixtures/recorded/languages/php/elseWrapThis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

data/fixtures/recorded/languages/php/ifElseWrapThis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

data/fixtures/recorded/languages/php/ifWrapThis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

data/fixtures/recorded/languages/php/tryWrapThis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

data/fixtures/recorded/languages/php/tryWrapThis2.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)