Skip to content

Commit 9dde5d0

Browse files
authored
chore: fix typos (#2391)
1 parent e75764d commit 9dde5d0

File tree

13 files changed

+31
-31
lines changed

13 files changed

+31
-31
lines changed

dependency-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ignoreErrors:
2121
shouldBeDevDependency:
2222
- '@cucumber/message-streams' # peer dependency of @cucumber/gherkin-streams
2323
unused:
24-
- '@cucumber/compatibility-kit' # files dynamically loaded in cck test, not require'd
24+
- '@cucumber/compatibility-kit' # files dynamically loaded in cck test, not required
2525
- '@typescript-eslint/eslint-plugin' # peer dependency of standard-with-typescript
2626
- '@typescript-eslint/parser' # peer dependency of @typescript-eslint/eslint-plugin
2727
- '@types/*' # type definitions

docs/first-time-contributor-tutorial.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ This option applies to the progress formatter and the summary formatter.
394394
```
395395
396396
Now we should add an entry in the CHANGELOG.md. Open it, locate the `### Added` section
397-
for the unreleased changes, and add somethig about the changes we just did:
397+
for the unreleased changes, and add something about the changes we just did:
398398
399399
```markdown
400400

docs/retro/2021/07/17.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This retrospective was from the first [new contributors mob/ensemble]. Sadly [@m
3535

3636
* Do this regularly but on any codebase, not just Cucumber
3737
* Would it be easier to just run it locally on one of our machines?
38-
* Matt do more homeowrk on twitch setup
38+
* Matt do more homework on twitch setup
3939
* Let's do this again!
4040
* Update CONTRIBUTING.md guide to include pointers to basics about forking, how to name your branch etc., and some words of comfort and encouragement to make mistakes, ask for help etc.
4141

docs/retro/2022/01/21.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
* Matt: Our docs don't give people enough context as they arrive - straight into the guts of installation without any signposts
2626
* Matt: How much we discovered about a problem I thought was simple. I love example mapping!
2727
* Kate: I wanted to be more actively participating in the miro board. More hands on. Was it a lack of familiarity? Should we have mad more formal mob roles? What are the rules of the example mapping game?
28-
* Kate: It was fun, thankyou!
28+
* Kate: It was fun, thank you!
2929

3030
## Actions
3131

3232
* Matt: figure out where we should implement this - in the existing commitbit repo or somewhere else?
33-
* Kate: think about the process and formalising exmaple mapping
33+
* Kate: think about the process and formalising example mapping

features/data_tables.feature

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Feature: Data Tables
3333
Given a table step
3434
| Vegetable | Rating |
3535
| Apricot | 5 |
36-
| Brocolli | 2 |
36+
| Broccoli | 2 |
3737
| Cucumber | 10 |
3838
"""
3939
Given a file named "features/step_definitions/passing_steps.js" with:
@@ -44,7 +44,7 @@ Feature: Data Tables
4444
Given(/^a table step$/, function(table) {
4545
const expected = [
4646
['Apricot', '5'],
47-
['Brocolli', '2'],
47+
['Broccoli', '2'],
4848
['Cucumber', '10']
4949
]
5050
assert.deepEqual(table.rows(), expected)
@@ -86,7 +86,7 @@ Feature: Data Tables
8686
Given a table step
8787
| Vegetable | Rating |
8888
| Apricot | 5 |
89-
| Brocolli | 2 |
89+
| Broccoli | 2 |
9090
| Cucumber | 10 |
9191
"""
9292
Given a file named "features/step_definitions/passing_steps.js" with:
@@ -97,7 +97,7 @@ Feature: Data Tables
9797
Given(/^a table step$/, function(table) {
9898
const expected = [
9999
{'Vegetable': 'Apricot', 'Rating': '5'},
100-
{'Vegetable': 'Brocolli', 'Rating': '2'},
100+
{'Vegetable': 'Broccoli', 'Rating': '2'},
101101
{'Vegetable': 'Cucumber', 'Rating': '10'}
102102
]
103103
assert.deepEqual(table.hashes(), expected)

features/step_definition_snippets_interfaces.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Feature: step definition snippets custom syntax
22

33
As a developer writing my step definitions in another JS dialect
4-
I want to be able to see step definition snippets in the language I perfer
4+
I want to be able to see step definition snippets in the language I prefer
55

66
Background:
77
Given a file named "features/undefined.feature" with:

features/step_definitions/parallel_steps.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function getSetsOfPicklesRunningAtTheSameTime(
88
): string[] {
99
const pickleIdToName: Record<string, string> = {}
1010
const testCaseIdToPickleId: Record<string, string> = {}
11-
const testCaseStarteIdToPickleId: Record<string, string> = {}
11+
const testCaseStartedIdToPickleId: Record<string, string> = {}
1212
let currentRunningPickleIds: string[] = []
1313
const result: string[] = []
1414
envelopes.forEach((envelope) => {
@@ -18,7 +18,7 @@ function getSetsOfPicklesRunningAtTheSameTime(
1818
testCaseIdToPickleId[envelope.testCase.id] = envelope.testCase.pickleId
1919
} else if (envelope.testCaseStarted != null) {
2020
const pickleId = testCaseIdToPickleId[envelope.testCaseStarted.testCaseId]
21-
testCaseStarteIdToPickleId[envelope.testCaseStarted.id] = pickleId
21+
testCaseStartedIdToPickleId[envelope.testCaseStarted.id] = pickleId
2222
currentRunningPickleIds.push(pickleId)
2323
if (currentRunningPickleIds.length > 1) {
2424
const setOfPickleNames = currentRunningPickleIds
@@ -29,7 +29,7 @@ function getSetsOfPicklesRunningAtTheSameTime(
2929
}
3030
} else if (envelope.testCaseFinished != null) {
3131
const pickleId =
32-
testCaseStarteIdToPickleId[envelope.testCaseFinished.testCaseStartedId]
32+
testCaseStartedIdToPickleId[envelope.testCaseFinished.testCaseStartedId]
3333
currentRunningPickleIds = currentRunningPickleIds.filter(
3434
(x) => x != pickleId
3535
)

features/usage_formatter.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Feature: usage formatter
22

33
As a developer with slow or unused steps
44
I want a formatter which just outputs the step definition usage
5-
So I know where my bottelnecks are and what step definitions I can remove
5+
So I know where my bottlenecks are and what step definitions I can remove
66

77

88
Scenario:

src/cli/helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function orderPickles<T = string>(
8585
break
8686
default:
8787
throw new Error(
88-
'Unrecgonized order type. Should be `defined` or `random`'
88+
'Unrecognized order type. Should be `defined` or `random`'
8989
)
9090
}
9191
}

src/formatter/helpers/formatters.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ const Formatters = {
2828
}
2929
},
3030
buildFormattersDocumentationString(): string {
31-
let concatanatedFormattersDocumentation: string = ''
31+
let concatenatedFormattersDocumentation: string = ''
3232
const formatters = this.getFormatters()
3333
for (const formatterName in formatters) {
34-
concatanatedFormattersDocumentation += ` ${formatterName}: ${formatters[formatterName].documentation}\n`
34+
concatenatedFormattersDocumentation += ` ${formatterName}: ${formatters[formatterName].documentation}\n`
3535
}
3636

37-
return concatanatedFormattersDocumentation
37+
return concatenatedFormattersDocumentation
3838
},
3939
}
4040

src/formatter/step_definition_snippet_builder/index_spec.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('StepDefinitionSnippetBuilder', () => {
2727
describe('build()', () => {
2828
describe('step is an precondition step', () => {
2929
it('uses Given as the function name', async function () {
30-
// Arrrange
30+
// Arrange
3131
const pickleStep = await getPickleStepWithText('Given abc')
3232

3333
// Act
@@ -43,7 +43,7 @@ describe('StepDefinitionSnippetBuilder', () => {
4343

4444
describe('step is an event step', () => {
4545
it('uses When as the function name', async function () {
46-
// Arrrange
46+
// Arrange
4747
const pickleStep = await getPickleStepWithText('When abc')
4848

4949
// Act
@@ -59,7 +59,7 @@ describe('StepDefinitionSnippetBuilder', () => {
5959

6060
describe('step is an outcome step', () => {
6161
it('uses Then as the function name', async function () {
62-
// Arrrange
62+
// Arrange
6363
const pickleStep = await getPickleStepWithText('Then abc')
6464

6565
// Act
@@ -75,7 +75,7 @@ describe('StepDefinitionSnippetBuilder', () => {
7575

7676
describe('step has simple name', () => {
7777
it('adds the proper generated expression', async function () {
78-
// Arrrange
78+
// Arrange
7979
const pickleStep = await getPickleStepWithText('Given abc')
8080

8181
// Act
@@ -94,7 +94,7 @@ describe('StepDefinitionSnippetBuilder', () => {
9494

9595
describe('step name has a quoted string', () => {
9696
it('adds the proper generated expression', async function () {
97-
// Arrrange
97+
// Arrange
9898
const pickleStep = await getPickleStepWithText('Given abc "def" ghi')
9999

100100
// Act
@@ -112,7 +112,7 @@ describe('StepDefinitionSnippetBuilder', () => {
112112

113113
describe('step name has multiple quoted strings', () => {
114114
it('adds the proper generated expression', async function () {
115-
// Arrrange
115+
// Arrange
116116
const pickleStep = await getPickleStepWithText(
117117
'Given abc "def" ghi "jkl" mno'
118118
)
@@ -134,7 +134,7 @@ describe('StepDefinitionSnippetBuilder', () => {
134134

135135
describe('step name has a standalone number', () => {
136136
it('adds the proper generated expression', async function () {
137-
// Arrrange
137+
// Arrange
138138
const pickleStep = await getPickleStepWithText('Given abc 123 def')
139139

140140
// Act
@@ -152,7 +152,7 @@ describe('StepDefinitionSnippetBuilder', () => {
152152

153153
describe('step has no argument', () => {
154154
it('passes no step parameter names', async function () {
155-
// Arrrange
155+
// Arrange
156156
const pickleStep = await getPickleStepWithText('Given abc')
157157

158158
// Act
@@ -168,7 +168,7 @@ describe('StepDefinitionSnippetBuilder', () => {
168168

169169
describe('step has a data table argument', () => {
170170
it('passes dataTable as a step parameter name', async function () {
171-
// Arrrange
171+
// Arrange
172172
const pickleStep = await getPickleStepWithText(`\
173173
Given abc
174174
| a |`)
@@ -186,7 +186,7 @@ describe('StepDefinitionSnippetBuilder', () => {
186186

187187
describe('step has a doc string argument', () => {
188188
it('passes docString as a step parameter name', async function () {
189-
// Arrrange
189+
// Arrange
190190
const pickleStep = await getPickleStepWithText(`
191191
Given abc
192192
"""

src/models/step_definition.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ export default class StepDefinition extends Definition implements IDefinition {
3030
this.expression.match(step.text).map((arg) => arg.getValue(world))
3131
)
3232
if (doesHaveValue(step.argument)) {
33-
const argumentParamater = parseStepArgument<any>(step.argument, {
33+
const argumentParameter = parseStepArgument<any>(step.argument, {
3434
dataTable: (arg) => new DataTable(arg),
3535
docString: (arg) => arg.content,
3636
})
37-
parameters.push(argumentParamater)
37+
parameters.push(argumentParameter)
3838
}
3939
return {
4040
getInvalidCodeLengthMessage: () =>

src/user_code_runner_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ describe('UserCodeRunner', () => {
9898
})
9999
})
100100

101-
describe('function calls back with non-serializable rror', () => {
101+
describe('function calls back with non-serializable error', () => {
102102
it('returns the error', async function () {
103103
// Arrange
104104
const fn = function (callback: CallbackFn): void {

0 commit comments

Comments
 (0)