Skip to content

Commit d027236

Browse files
authored
fix: correct minor typos in docs and test descriptions (#15264)
1 parent 80f5bbc commit d027236

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

documentation/docs/30-advanced/20-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export const getTodo = query(v.string(), (id) => {
159159
});
160160
```
161161

162-
...but it is called with something that doesn't match the schema — such as a number (e.g `await getTodos(1)`) — then validation will fail, the server will respond with a [400 status code](https://http.dog/400), and the function will throw with the message 'Bad Request'.
162+
...but it is called with something that doesn't match the schema — such as a number (e.g. `await getTodos(1)`) — then validation will fail, the server will respond with a [400 status code](https://http.dog/400), and the function will throw with the message 'Bad Request'.
163163

164164
To customise this message and add additional properties to the error object, implement `handleValidationError`:
165165

packages/kit/src/runtime/server/page/load_data.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test('sets body to empty when mode is no-cors', async () => {
3030
assert.equal(text, '');
3131
});
3232

33-
test('keeps body when mode isnt no-cors on same domain', async () => {
33+
test("keeps body when mode isn't no-cors on same domain", async () => {
3434
const fetch = create_fetch({});
3535
const response = await fetch('https://domain-a.com');
3636
const text = await response.text();

packages/kit/src/runtime/server/page/serialize_data.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ test('computes ttl using cache-control and age headers', () => {
8181
);
8282
});
8383

84-
test('doesnt compute ttl when vary * header is present', () => {
84+
test("doesn't compute ttl when vary * header is present", () => {
8585
const raw = 'an "attr" & a \ud800';
8686
const escaped = 'an "attr" & a �';
8787
const response_body = '';

0 commit comments

Comments
 (0)