Skip to content

Commit 10de695

Browse files
sweettypdevassydhmlau
authored andcommitted
docs: fix spelling and grammar typos
Fix repeated words ("the the", "to to", "that that") and misspellings (seperate, identifer, acess, specfied, incase) in documentation, code comments and test descriptions. Signed-off-by: sweettypdevassy <sweettypdevassy@ibm.com>
1 parent 7175aac commit 10de695

14 files changed

Lines changed: 18 additions & 18 deletions

File tree

‎docs/site/Model.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,10 +529,10 @@ Here are general attributes for property definitions:
529529
the value of <code>defaultFn</code> is generated by LoopBack itself. If you'd like to use database built-in <code>uuid</code> functions (MySQL or Postgres for example), please check the README file of the corresponding connector.
530530
</li>
531531
<li>
532-
don't set <code>generated</code> to <code>true</code> incase of <code>defaultFn</code> as <code>generated</code> property indicates the value to be generated by the database not by Loopback.
532+
don't set <code>generated</code> to <code>true</code> in case of <code>defaultFn</code> as <code>generated</code> property indicates the value to be generated by the database not by Loopback.
533533
</li>
534534
<li>
535-
don't set <code>required</code> to <code>true</code> incase of <code>defaultFn</code> as <code>required</code> means the user needs to provide the field in the request always.
535+
don't set <code>required</code> to <code>true</code> in case of <code>defaultFn</code> as <code>required</code> means the user needs to provide the field in the request always.
536536
</li>
537537
</ul>
538538
</td>

‎docs/site/Repository.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ We can now access key-value stores such as [Redis](https://redis.io/) using the
313313
### Define a KeyValue Datasource
314314

315315
We first need to define a datasource to configure the key-value store. The
316-
easiest option is to to generate the datasource automatically using
316+
easiest option is to generate the datasource automatically using
317317
`lb4 datasource` command and selecting
318318
`Redis key-value connector (supported by StrongLoop)`.
319319

‎docs/site/Testing-Your-Extensions.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ You can find an advanced example on testing controllers in
113113
The recommended usage of a decorator is to store metadata about a class or a
114114
class method. The decorator implementation usually provides a function to
115115
retrieve the related metadata based on the class name and method name. For a
116-
unit test for a decorator, it is important to test that that it stores and
116+
unit test for a decorator, it is important to test that it stores and
117117
retrieves the correct metadata. _The retrieval gets tested as a result of
118118
validating whether the metadata was stored or not._
119119

‎extensions/authentication-jwt/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ the endpoint.
223223
```
224224

225225
2. `To refresh the token`: to generate the access token by the refresh token
226-
obtained from the the last login endpoint.
226+
obtained from the last login endpoint.
227227

228228
```ts
229229
async refresh(

‎extensions/authentication-jwt/src/__tests__/fixtures/controllers/user.controller.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const RefreshGrantSchema: SchemaObject = {
4242

4343
// Describes the request body of grant object
4444
const RefreshGrantRequestBody = {
45-
description: 'Reissuing Acess Token',
45+
description: 'Reissuing Access Token',
4646
required: true,
4747
content: {
4848
'application/json': {schema: RefreshGrantSchema},

‎packages/boot/src/booters/model-api.booter.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class ModelApiBooter extends BaseArtifactBooter {
4747
}
4848

4949
/**
50-
* Load the the model config files
50+
* Load the model config files
5151
*/
5252
async load(): Promise<void> {
5353
// Important: don't call `super.load()` here, it would try to load

‎packages/cli/generators/openapi/utils.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function escapeIdentifier(name) {
164164
}
165165

166166
/**
167-
* Escape the property if it's not a valid JavaScript identifer
167+
* Escape the property if it's not a valid JavaScript identifier
168168
* @param {string} name
169169
*/
170170
function escapePropertyName(name) {

‎packages/cli/test/unit/utils.unit.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ describe('Utils', () => {
186186
);
187187
});
188188

189-
describe('should use dash to seperate words', () => {
189+
describe('should use dash to separate words', () => {
190190
testExpect('first letter is upper case', 'Foobar', 'foobar');
191191
testExpect(
192192
'if the name contains upper case letters',
@@ -200,7 +200,7 @@ describe('Utils', () => {
200200
);
201201
});
202202

203-
describe('should use dash to seperate digits and words', () => {
203+
describe('should use dash to separate digits and words', () => {
204204
testExpect(
205205
'if the class name contains a digit in the middle',
206206
'Car4Share',

‎packages/context/src/__tests__/acceptance/class-level-bindings.acceptance.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ describe('Context bindings - Injecting dependencies of classes', () => {
270270
/The key 'hash' is not bound to any value in context .+/,
271271
);
272272

273-
// Now bind `hash` to `456` to to ctx
273+
// Now bind `hash` to `456` to ctx
274274
ctx.bind(HASH_KEY).to('456');
275275
// The `hash` injection of `Store` can now be resolved
276276
expect(await store.getter()).to.equal('456');
@@ -289,7 +289,7 @@ describe('Context bindings - Injecting dependencies of classes', () => {
289289
/The key 'hash' is not bound to any value in context .+/,
290290
);
291291

292-
// Now bind `hash` to `456` to to ctx
292+
// Now bind `hash` to `456` to ctx
293293
ctx.bind(HASH_KEY).to('456');
294294
// The `hash` injection of `Store` can now be resolved
295295
const store = await requestCtx.get<Store>(STORE_KEY);
@@ -318,7 +318,7 @@ describe('Context bindings - Injecting dependencies of classes', () => {
318318
value = await invokeMethod(store, 'getHashWithName', requestCtx);
319319
expect(value).to.equal('123: my-store');
320320

321-
// bind the value to to ctx
321+
// bind the value to ctx
322322
ctx.bind(HASH_KEY).to('456');
323323

324324
value = await invokeMethod(Store, 'getHash', ctx);

‎packages/openapi-v3/src/decorators/visibility.decorator.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const debug = require('debug')(
1616
);
1717

1818
/**
19-
* Marks an api path with the specfied visibility. When applied to a class,
19+
* Marks an api path with the specified visibility. When applied to a class,
2020
* this decorator marks all paths with the specified visibility.
2121
*
2222
* You can optionally mark all controllers in a class with

0 commit comments

Comments
 (0)