Skip to content

Commit db35ddf

Browse files
Updated more tests
1 parent 18d504b commit db35ddf

18 files changed

+116
-19
lines changed

data/fixtures/recorded/implicitExpansion/funkWrapPastInk.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ command:
44
spokenForm: funk wrap past sit
55
action:
66
name: wrapWithSnippet
7-
snippetDescription: {type: named, name: functionDeclaration, variableName: body}
7+
snippetDescription:
8+
type: custom
9+
variableName: body
10+
scopeType: {type: statement}
11+
body: "function $name($parameterList) {\n\t$body\n}"
812
target:
913
type: range
1014
anchor: {type: implicit}
@@ -14,6 +18,7 @@ command:
1418
excludeAnchor: false
1519
excludeActive: false
1620
usePrePhraseSnapshot: true
21+
spokenFormError: custom wrap with snippet
1722
initialState:
1823
documentContents: |-
1924
const whatever = "hello";

data/fixtures/recorded/implicitExpansion/funkWrapThat.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ command:
44
spokenForm: funk wrap that
55
action:
66
name: wrapWithSnippet
7-
snippetDescription: {type: named, name: functionDeclaration, variableName: body}
7+
snippetDescription:
8+
type: custom
9+
variableName: body
10+
scopeType: {type: statement}
11+
body: "function $name($parameterList) {\n\t$body\n}"
812
target:
913
type: primitive
1014
mark: {type: that}
1115
usePrePhraseSnapshot: true
16+
spokenFormError: custom wrap with snippet
1217
initialState:
1318
documentContents: |
1419
const whatever = "hello";

data/fixtures/recorded/implicitExpansion/funkWrapThat2.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ command:
44
spokenForm: funk wrap that
55
action:
66
name: wrapWithSnippet
7-
snippetDescription: {type: named, name: functionDeclaration, variableName: body}
7+
snippetDescription:
8+
type: custom
9+
variableName: body
10+
scopeType: {type: statement}
11+
body: "function $name($parameterList) {\n\t$body\n}"
812
target:
913
type: primitive
1014
mark: {type: that}
1115
usePrePhraseSnapshot: true
16+
spokenFormError: custom wrap with snippet
1217
initialState:
1318
documentContents: |
1419
const whatever = "hello";

data/fixtures/recorded/implicitExpansion/funkWrapThis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ command:
44
spokenForm: funk wrap this
55
action:
66
name: wrapWithSnippet
7-
snippetDescription: {type: named, name: functionDeclaration, variableName: body}
7+
snippetDescription:
8+
type: custom
9+
variableName: body
10+
scopeType: {type: statement}
11+
body: "function $name($parameterList) {\n\t$body\n}"
812
target:
913
type: primitive
1014
mark: {type: cursor}
1115
usePrePhraseSnapshot: true
16+
spokenFormError: custom wrap with snippet
1217
initialState:
1318
documentContents: const whatever = "hello";
1419
selections:

data/fixtures/recorded/implicitExpansion/funkWrapThis2.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ command:
44
spokenForm: funk wrap this
55
action:
66
name: wrapWithSnippet
7-
snippetDescription: {type: named, name: functionDeclaration, variableName: body}
7+
snippetDescription:
8+
type: custom
9+
variableName: body
10+
scopeType: {type: statement}
11+
body: "function $name($parameterList) {\n\t$body\n}"
812
target:
913
type: primitive
1014
mark: {type: cursor}
1115
usePrePhraseSnapshot: true
16+
spokenFormError: custom wrap with snippet
1217
initialState:
1318
documentContents: const whatever = "hello";
1419
selections:

data/fixtures/recorded/implicitExpansion/funkWrapToken.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ command:
44
spokenForm: funk wrap token
55
action:
66
name: wrapWithSnippet
7-
snippetDescription: {type: named, name: functionDeclaration, variableName: body}
7+
snippetDescription:
8+
type: custom
9+
variableName: body
10+
scopeType: {type: statement}
11+
body: "function $name($parameterList) {\n\t$body\n}"
812
target:
913
type: primitive
1014
modifiers:
1115
- type: containingScope
1216
scopeType: {type: token}
1317
usePrePhraseSnapshot: true
18+
spokenFormError: custom wrap with snippet
1419
initialState:
1520
documentContents: const whatever = "hello";
1621
selections:

data/fixtures/recorded/implicitExpansion/funkWrapWhale.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ command:
44
spokenForm: funk wrap whale
55
action:
66
name: wrapWithSnippet
7-
snippetDescription: {type: named, name: functionDeclaration, variableName: body}
7+
snippetDescription:
8+
type: custom
9+
variableName: body
10+
scopeType: {type: statement}
11+
body: "function $name($parameterList) {\n\t$body\n}"
812
target:
913
type: primitive
1014
mark: {type: decoratedSymbol, symbolColor: default, character: w}
1115
usePrePhraseSnapshot: true
16+
spokenFormError: custom wrap with snippet
1217
initialState:
1318
documentContents: |
1419
const whatever = "hello";

data/fixtures/recorded/implicitExpansion/funkWrapWhalePastBat.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ command:
44
spokenForm: funk wrap whale past bat
55
action:
66
name: wrapWithSnippet
7-
snippetDescription: {type: named, name: functionDeclaration, variableName: body}
7+
snippetDescription:
8+
type: custom
9+
variableName: body
10+
scopeType: {type: statement}
11+
body: "function $name($parameterList) {\n\t$body\n}"
812
target:
913
type: range
1014
anchor:
@@ -16,6 +20,7 @@ command:
1620
excludeAnchor: false
1721
excludeActive: false
1822
usePrePhraseSnapshot: true
23+
spokenFormError: custom wrap with snippet
1924
initialState:
2025
documentContents: |
2126
const whatever = "hello";

data/fixtures/recorded/implicitExpansion/snipFunkAfterThat.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,20 @@ command:
44
spokenForm: snippet funk after that
55
action:
66
name: insertSnippet
7-
snippetDescription: {type: named, name: functionDeclaration}
7+
snippetDescription:
8+
type: custom
9+
body: "function $name($parameterList) {\n\t$body\n}"
10+
scopeTypes:
11+
- {type: namedFunction}
12+
- {type: statement}
813
destination:
914
type: primitive
1015
insertionMode: after
1116
target:
1217
type: primitive
1318
mark: {type: that}
1419
usePrePhraseSnapshot: true
20+
spokenFormError: custom insertion snippet
1521
initialState:
1622
documentContents: |
1723
function myFunction() {

data/fixtures/recorded/implicitExpansion/snipFunkAfterThat2.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,20 @@ command:
44
spokenForm: snippet funk after that
55
action:
66
name: insertSnippet
7-
snippetDescription: {type: named, name: functionDeclaration}
7+
snippetDescription:
8+
type: custom
9+
body: "function $name($parameterList) {\n\t$body\n}"
10+
scopeTypes:
11+
- {type: namedFunction}
12+
- {type: statement}
813
destination:
914
type: primitive
1015
insertionMode: after
1116
target:
1217
type: primitive
1318
mark: {type: that}
1419
usePrePhraseSnapshot: true
20+
spokenFormError: custom insertion snippet
1521
initialState:
1622
documentContents: |-
1723
function whatever() {

0 commit comments

Comments
 (0)