Skip to content

Commit 2af8294

Browse files
authored
chore: fix typos (#496)
1 parent d4066e5 commit 2af8294

14 files changed

Lines changed: 15 additions & 15 deletions

File tree

websites/mswjs.io/src/content/blog/enter-websockets.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The next iteration didn't lead anywhere either. Or, rather, it led back to the s
7979

8080
**I should've based the interceptor off of the WHATWG WebSocket standard all along.**
8181

82-
No custom transports, no unofficial message protocols. Bet. On. The. Standard. Allways bet on the standard. And it is only through betting on the standard that you can enjoy the WebSocket mocking today.
82+
No custom transports, no unofficial message protocols. Bet. On. The. Standard. Always bet on the standard. And it is only through betting on the standard that you can enjoy the WebSocket mocking today.
8383

8484
## The final iteration
8585

websites/mswjs.io/src/content/blog/introducing-server-boundary.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Internally, MSW keeps the list of current request handlers in-memory, and resolv
4141

4242
```js {8}
4343
class SetupServerApi {
44-
construtor(...initialHandlers) {
44+
constructor(...initialHandlers) {
4545
this.initialHandlers = initialHandlers
4646
this.currentHandlers = [...this.initialHandlers]
4747
}

websites/mswjs.io/src/content/blog/why-use-mock-service-worker.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ You would be mistaken to assume you can throw that logic away without any reperc
5656
fetch('/resource', { body: 'Hello world' })
5757
```
5858

59-
**If this was a real reques**t, it would throw an exception:
59+
**If this was a real request**, it would throw an exception:
6060

6161
```
6262
Request with GET/HEAD method cannot have body.

websites/mswjs.io/src/content/docs/api/ws.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ api.addEventListener('connection', ({ server }) => {
236236

237237
## `WebSocketConnectionInfo`
238238

239-
The `info` argument on the `connection` event listener contains additional WebSocket connection infromation.
239+
The `info` argument on the `connection` event listener contains additional WebSocket connection information.
240240

241241
| Property name | Type | Description |
242242
| ------------- | --------------------------------- | ----------------------------------------------------------------------- |

websites/mswjs.io/src/content/docs/graphql/intercepting-operations/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ The following properties are available on the response resolver object argument
126126

127127
| Property | Type | Description |
128128
| --------------- | ------------------------ | -------------------------------------------------------------------------------------------- |
129-
| `cookies` | `Record<string, string>` | Parsed requets cookies. |
129+
| `cookies` | `Record<string, string>` | Parsed request cookies. |
130130
| `query` | `string` | Raw GraphQL [query string](/docs/graphql/intercepting-operations/queries#reading-raw-query). |
131131
| `variables` | `Record<string, any>` | Parsed [variables](/docs/graphql/intercepting-operations/variables) of this operation. |
132132
| `operationName` | `string` | Operation name (e.g. `'GetUser'`). |

websites/mswjs.io/src/content/docs/graphql/mocking-responses/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ api.query<User>('GetUser', () => {
6262
})
6363
```
6464

65-
> Above is an example of including the `__typename` key in the mocked response reqiured by Apollo.
65+
> Above is an example of including the `__typename` key in the mocked response required by Apollo.
6666
6767
## Next steps
6868

websites/mswjs.io/src/content/docs/http/handling-requests.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ http.get('https://api.example.com/resource', async ({ request }) => {
5858
5959
### Return nothing
6060

61-
You can also return nothing from the response resolver, either explicitly or implicitly. If that happens, MSW will continue to look for other request handlers that might match ths request. You can utilize this for network introspection or any other side effects that do not involve responding to the request.
61+
You can also return nothing from the response resolver, either explicitly or implicitly. If that happens, MSW will continue to look for other request handlers that might match this request. You can utilize this for network introspection or any other side effects that do not involve responding to the request.
6262

6363
```ts {3}
6464
export const handlers = [
@@ -71,4 +71,4 @@ export const handlers = [
7171
]
7272
```
7373

74-
> In this example, the first request handler will match, log the message to the console, and, since it returns nothing, finish. The second request hander will then match the same request and handle it with a mocked response, as an example.
74+
> In this example, the first request handler will match, log the message to the console, and, since it returns nothing, finish. The second request handler will then match the same request and handle it with a mocked response, as an example.

websites/mswjs.io/src/content/docs/http/mocking-responses/polling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ http.get<{ city: string }, never, { degree: number }>(
2727
)
2828
```
2929

30-
This `GET /wheather/:city` request handler increments the `degree` on each response until it reaches 28 degrees:
30+
This `GET /weather/:city` request handler increments the `degree` on each response until it reaches 28 degrees:
3131

3232
```json
3333
GET /weather/london // { "degree": 26 }

websites/mswjs.io/src/content/docs/philosophy.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ http.get('/old', () => {
4343

4444
## Server's perspective
4545

46-
When working with MSW, you will be writing [request handlers](/docs/http/intercepting-requests/) to intercept and respond to requests. It's important to approach those handlers from the _server's_ perspective since, effectively, you are describing how the server should behave in a particlar scenario.
46+
When working with MSW, you will be writing [request handlers](/docs/http/intercepting-requests/) to intercept and respond to requests. It's important to approach those handlers from the _server's_ perspective since, effectively, you are describing how the server should behave in a particular scenario.

websites/mswjs.io/src/content/docs/recipes/using-local-https.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords:
77
- self-signed
88
---
99

10-
Due to security considerations, Service Workers can only be registered over a secure connection (exception being the local development on `localhost`). In some project setups, you may require to run your local application over HTTPS and will shortly encouter the following error when starting MSW's worker:
10+
Due to security considerations, Service Workers can only be registered over a secure connection (exception being the local development on `localhost`). In some project setups, you may require to run your local application over HTTPS and will shortly encounter the following error when starting MSW's worker:
1111

1212
```txt
1313
SecurityError: Failed to register a ServiceWorker:

0 commit comments

Comments
 (0)