Skip to content

Commit eecb1f9

Browse files
Apply suggestions from code review
Co-authored-by: Johannes Schobel <[email protected]>
1 parent b6b833e commit eecb1f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/fundamentals/unit-testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ The compiled module has several useful methods, as described in the following ta
314314
315315
#### Overriding globally registered providers
316316
317-
If you have a [globally registered guard](/security/authentication#enable-authentication-globally) (or pipe, interceptor, or filter), you need to take a few more steps to override that enhancer. To re-cap the original registration looks like this:
317+
If you have a [globally registered guard](/security/authentication#enable-authentication-globally) (or pipe, interceptor, or filter), you need to take a few more steps to override that enhancer. To recap the original registration looks like this:
318318
319319
```typescript
320320
providers: [
@@ -339,7 +339,7 @@ providers: [
339339

340340
> info **Hint** Change the `useClass` to `useExisting` to reference a registered provider instead of having Nest instantiate it behind the token.
341341
342-
Now the `JwtAuthGuard` is visible to nest as a regular provider that can be overridden when creating the test module:
342+
Now the `JwtAuthGuard` is visible to nestjs as a regular provider that can be overridden when creating the `TestingModule`:
343343

344344
```typescript
345345
const moduleRef = await Test.createTestingModule({

0 commit comments

Comments
 (0)