Skip to content

Commit 4229c5f

Browse files
committed
fix: typo
Signed-off-by: Vitor Mattos <[email protected]>
1 parent 6323206 commit 4229c5f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ When /^set the display name of user "([^"]*)" to "([^"]*)"$/
5656
When /^set the email of user "([^"]*)" to "([^"]*)"$/
5757
When sending :verb to ocs :url
5858
When the response should have a status code :code
59-
When fetch field :path from prevous JSON response
59+
When fetch field :path from previous JSON response
6060
When the response should contain the initial state :name with the following values:
6161
When the response should contain the initial state :name json that match with:
6262
When the following :appId app config is set
@@ -83,7 +83,7 @@ When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
8383
| file | {"base64":""} |
8484
```
8585

86-
### Step: `fetch field :path from prevous JSON response`
86+
### Step: `fetch field :path from previous JSON response`
8787

8888
If the json response is an array, you can fetch specific values using this step. The fetched values is stored to be used by other steps.
8989

@@ -112,7 +112,7 @@ The alias `price` could be used in a path or body of a request:
112112
}
113113
"""
114114
And sending "POST" to "/"
115-
And fetch field "(foo)data.0.foo" from prevous JSON response
115+
And fetch field "(foo)data.0.foo" from previous JSON response
116116
# After fetch the field, you can use the value of field like this:
117117
And sending "POST" to "/?foo=<foo>"
118118
| field | <data.0.foo> |
@@ -123,7 +123,7 @@ The alias `price` could be used in a path or body of a request:
123123
You can assign the return of a jq to your field using a jq like as the follow pattern:
124124

125125
```gherkin
126-
And fetch field "(foo)(jq).value" from prevous JSON response
126+
And fetch field "(foo)(jq).value" from previous JSON response
127127
```
128128

129129
This will retrieve a specific value from json response and assign this to your desided field.
@@ -160,7 +160,7 @@ If you need to:
160160

161161
Implement a method `parseText` like the follow code and remember to call parent method.
162162

163-
This methods can works together with `fetch field :path from prevous JSON response`
163+
This methods can works together with `fetch field :path from previous JSON response`
164164
```php
165165
protected function parseText(string $text): string {
166166
$patterns = [

features/test.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Feature: Test this extension
7878
}
7979
"""
8080
And sending "POST" to "/"
81-
And fetch field "(FIELD_FOO)data.0.foo" from prevous JSON response
81+
And fetch field "(FIELD_FOO)data.0.foo" from previous JSON response
8282
# After fetch the field, you can use the value of field like this:
8383
And sending "POST" to "/?foo=<FIELD_FOO>"
8484
| field | <data.0.foo> |
@@ -98,7 +98,7 @@ Feature: Test this extension
9898
}
9999
"""
100100
And sending "POST" to "/"
101-
And fetch field "(FIELD_FOO)(jq).data[0].foo" from prevous JSON response
101+
And fetch field "(FIELD_FOO)(jq).data[0].foo" from previous JSON response
102102
# After fetch the field, you can use the value of field like this:
103103
And sending "POST" to "/?foo=<FIELD_FOO>"
104104
| field | <data.0.foo> |

src/NextcloudApiContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ private function validateAsJsonQuery(string $expected, string $actual): void {
336336
}
337337

338338
/**
339-
* @When fetch field :path from prevous JSON response
339+
* @When fetch field :path from previous JSON response
340340
*/
341341
public function fetchFieldFromPreviousJsonResponse(string $path): void {
342342
$this->response->getBody()->seek(0);

0 commit comments

Comments
 (0)