Skip to content

Commit 6de2e62

Browse files
Update test
1 parent 8804054 commit 6de2e62

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ command:
66
name: wrapWithSnippet
77
snippetDescription:
88
type: custom
9-
body: "try {\n\t$1\n} catch (err) {\n\t$0\n}\n"
9+
variableName: try
10+
body: "try {\n\t$try\n} catch (err) {\n\tcatch\n}"
1011
scopeTypes:
1112
- {type: statement}
1213
target:
@@ -23,18 +24,17 @@ initialState:
2324
finalState:
2425
documentContents: |-
2526
try {
26-
27+
const
2728
} catch (err) {
28-
29-
}
30-
foo = "bar";
29+
catch
30+
} foo = "bar";
3131
selections:
32-
- anchor: {line: 1, character: 4}
33-
active: {line: 1, character: 4}
32+
- anchor: {line: 4, character: 1}
33+
active: {line: 4, character: 1}
3434
thatMark:
3535
- type: UntypedTarget
3636
contentRange:
3737
start: {line: 0, character: 0}
38-
end: {line: 5, character: 0}
38+
end: {line: 4, character: 1}
3939
isReversed: false
4040
hasExplicitRange: true

0 commit comments

Comments
 (0)